chromium/third_party/pthreadpool/src/src/threadpool-utils.h

#pragma once

#include <stdint.h>
#include <stddef.h>

/* SSE-specific headers */
#if defined(__SSE__) || defined(__x86_64__) || defined(_M_X64) && !defined(_M_ARM64EC) || (defined(_M_IX86_FP) && _M_IX86_FP >= 1)
	#include <xmmintrin.h>
#endif

/* MSVC-specific headers */
#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) {}

/* Windows headers define min and max macros; undefine it here */
#ifdef min
	#undef min
#endif

static inline size_t min(size_t a, size_t b) {}