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)
36
c23_nodiscard
bool
infix_cpu_has_avx2(
void
);
38
c23_nodiscard
bool
infix_cpu_has_avx512f(
void
);
39
#endif
40
41
#if defined(INFIX_ARCH_AARCH64)
43
c23_nodiscard
bool
infix_cpu_has_sve(
void
);
44
#endif
compat_c23.h
Provides forward compatibility macros for C23 features.
c23_nodiscard
#define c23_nodiscard
A compatibility macro for the C23 [[nodiscard]] attribute.
Definition
compat_c23.h:113
infix_config.h
Platform, architecture, and ABI detection macros.
src
common
platform.h
Generated by
1.9.8