infix
A JIT-Powered FFI Library for C
Loading...
Searching...
No Matches
Ch02_SIMD_AVX.c File Reference

Cookbook Chapter 2: Working with SIMD Vectors (x86-64) More...

#include <infix/infix.h>
#include <stdbool.h>
#include <stdio.h>
Include dependency graph for Ch02_SIMD_AVX.c:

Classes

struct  __m256d
 
struct  __m512d
 

Functions

int main ()
 

Detailed Description

Cookbook Chapter 2: Working with SIMD Vectors (x86-64)

This example demonstrates FFI calls with x86-64 SIMD vector types. It covers 256-bit AVX vectors (__m256d) and 512-bit AVX-512 vectors (__m512d). infix handles the ABI-specific rules for passing these types in YMM/ZMM registers.

NOTE: This program must be compiled with the appropriate CPU features enabled (e.g., -mavx2, -mavx512f on GCC/Clang) and run on hardware that supports these instruction sets to avoid illegal instruction errors.

Function Documentation

◆ main()

int main ( void  )