ReactOS 0.4.16-dev-1165-g40721f4
sse2_initializer.cpp
Go to the documentation of this file.
1//
2// sse2_initializer.cpp
3//
4// Copyright (c) Microsoft Corporation. All rights reserved.
5//
6// CRT initializers and terminators have been extracted from the main CRT sources
7// to enable the CRT DLL to be built with LTCG enabled. The source files in which
8// the CRT initializers and terminators are defined cannot be compiled as /GL
9// because the compiler will optimize them away during link-time code generation.
10// We inhibit this optimization by defining the initializers and terminators in
11// separate source files that are not compiled with /GL.
12//
13#include <corecrt_internal.h>
14
15extern "C" int __cdecl __acrt_initialize_sse2();
16
17#ifdef _M_HYBRID_X86_ARM64
18#pragma intrinsic(_HybridGenerateThunks)
19
20extern "C" int __cdecl __acrt_initialize_sse2()
21{
22 _HybridGenerateThunks(__acrt_initialize_sse2, 1);
23 return 0;
24}
25#endif
26
27extern "C" _CRTALLOC(".CRT$XIC") _PIFV const __acrt_tran_sse2_initializer = __acrt_initialize_sse2;
#define __cdecl
Definition: accygwin.h:79
int(__cdecl * _PIFV)(void)
#define _CRTALLOC(x)
int __cdecl __acrt_initialize_sse2()
Definition: stubs.c:32
#define const
Definition: zconf.h:233