#include <assert.h>
#include <stddef.h>
#ifdef _WIN32
#include <windows.h>
#else
#include <pthread.h>
#endif
#include "xnnpack/common.h"
#include "xnnpack/config.h"
#include "xnnpack/lut.h"
static struct xnn_x8_lut_config x8_lut_config = …;
#if XNN_PLATFORM_WINDOWS
static INIT_ONCE init_guard = INIT_ONCE_STATIC_INIT;
#else
static pthread_once_t init_guard = …;
#endif
static void init_x8_lut_config(void) { … }
#if XNN_PLATFORM_WINDOWS
static BOOL CALLBACK init_x8_lut_config_windows(PINIT_ONCE init_once, PVOID parameter, PVOID* context) {
init_x8_lut_config();
return TRUE;
}
#endif
const struct xnn_x8_lut_config* xnn_init_x8_lut_config() { … }