infix
A JIT-Powered FFI Library for C
Loading...
Searching...
No Matches
platform.h
Go to the documentation of this file.
1
26#pragma once
27#include "common/compat_c23.h"
28#include "common/infix_config.h"
29#include <stdbool.h>
30#if defined(INFIX_ARCH_X64)
32INFIX_INTERNAL c23_nodiscard bool infix_cpu_has_avx2(void);
34INFIX_INTERNAL c23_nodiscard bool infix_cpu_has_avx512f(void);
35#endif
36#if defined(INFIX_ARCH_AARCH64)
38INFIX_INTERNAL c23_nodiscard bool infix_cpu_has_sve(void);
39#endif
Provides forward compatibility macros for C23 features.
#define c23_nodiscard
Internal alias for the public INFIX_NODISCARD macro.
Definition compat_c23.h:91
Platform, architecture, and ABI detection macros.
#define INFIX_INTERNAL
When compiling with -fvisibility=hidden, we use this to explicitly mark internal-but-shared functions...
Definition infix_config.h:211