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)
32c23_nodiscard bool infix_cpu_has_avx2(void);
34c23_nodiscard bool infix_cpu_has_avx512f(void);
35#endif
36#if defined(INFIX_ARCH_AARCH64)
38c23_nodiscard bool infix_cpu_has_sve(void);
39#endif
Provides forward compatibility macros for C23 features.
#define c23_nodiscard
A compatibility macro for the C23 [[nodiscard]] attribute.
Definition compat_c23.h:106
Platform, architecture, and ABI detection macros.