infix
A JIT-Powered FFI Library for C
Loading...
Searching...
No Matches
platform.h
Go to the documentation of this file.
1
28#pragma once
29
30#include "common/compat_c23.h"
31#include "common/infix_config.h"
32#include <stdbool.h>
33
34#if defined(INFIX_ARCH_X64)
36c23_nodiscard bool infix_cpu_has_avx2(void);
38c23_nodiscard bool infix_cpu_has_avx512f(void);
39#endif
40
41#if defined(INFIX_ARCH_AARCH64)
43c23_nodiscard bool infix_cpu_has_sve(void);
44#endif
Provides forward compatibility macros for C23 features.
#define c23_nodiscard
A compatibility macro for the C23 [[nodiscard]] attribute.
Definition compat_c23.h:113
Platform, architecture, and ABI detection macros.