#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/microparams-init.h"
#include "xnnpack/transpose.h"
#include "xnnpack/vunary.h"
static struct xnn_transpose_config transpose_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_transpose_config(void) { … }
#if XNN_PLATFORM_WINDOWS
static BOOL CALLBACK init_transpose_config_windows(PINIT_ONCE init_once, PVOID parameter, PVOID* context) {
init_transpose_config();
return TRUE;
}
#endif
const struct xnn_transpose_config* xnn_init_transpose_config() { … }