|
infix
A JIT-Powered FFI Library for C
|
Cookbook Chapter 2: Working with SIMD Vectors (x86-64) More...
Classes | |
| struct | __m256d |
| struct | __m512d |
Functions | |
| int | main () |
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.
| int main | ( | void | ) |