#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/microfnptr.h"
#include "xnnpack/unpool.h"
static struct xnn_unpool_config x32_unpool_config = …;
#if XNN_PLATFORM_WINDOWS
static INIT_ONCE init_guard_x32_unpool = INIT_ONCE_STATIC_INIT;
#else
static pthread_once_t init_guard_x32_unpool = …;
#endif
static void init_x32_unpool_config(void) { … }
#if XNN_PLATFORM_WINDOWS
static BOOL CALLBACK init_x32_unpool_config_windows(PINIT_ONCE init_once, PVOID parameter, PVOID* context) {
init_x32_unpool_config();
return TRUE;
}
#endif
const struct xnn_unpool_config* xnn_init_x32_unpool_config() { … }