#pragma once
#include <stdint.h>
#include <stddef.h>
#if defined(__SSE__) || defined(__x86_64__) || defined(_M_X64) && !defined(_M_ARM64EC) || (defined(_M_IX86_FP) && _M_IX86_FP >= 1)
#include <xmmintrin.h>
#endif
#if defined(_MSC_VER)
#include <intrin.h>
#endif
struct fpu_state { … };
static inline struct fpu_state get_fpu_state() { … }
static inline void set_fpu_state(const struct fpu_state state) { … }
static inline void disable_fpu_denormals() { … }
static inline size_t modulo_decrement(size_t i, size_t n) { … }
static inline size_t divide_round_up(size_t dividend, size_t divisor) { … }
#ifdef min
#undef min
#endif
static inline size_t min(size_t a, size_t b) { … }