reactos/sdk/lib/ucrt
Timo Kreuzer 719ea022ec [UCRT] Fix GCC/Clang SIMD compilation
GCC and Clang need to mark functions that use SSE/AVX etc, either with a function attribute or a pragma around the function. strlen uses a template function that either uses SSE2 or AVX2. Previously the template was surrounded with pragmas to allow both SSE2 and AVX2, but that makes GCC assume that it can use AVX2 instructions even in the SSE2 version. To fix this the template instances are now build in individual compilation units for SSE2 and AVX, separate from the "dispatcher" function.
Now ucrtbase doesn't crash anymore on GCC build.

Another issue was the namespace around strnlen_mode, which has confused clang so much, that it forgot to instantiate the template code.
2025-07-29 09:22:15 +03:00
..
conio [UCRT] Add CMake files 2025-01-16 14:18:53 +02:00
convert [UCRT] Remove __inline from conversion functions 2025-01-22 18:56:08 +02:00
dll [UCRT] Add CMake files 2025-01-16 14:18:53 +02:00
env [UCRT] Add CMake files 2025-01-16 14:18:53 +02:00
exec [UCRT] Add CMake files 2025-01-16 14:18:53 +02:00
fenv
filesystem [UCRT] Add CMake files 2025-01-16 14:18:53 +02:00
float [VCRUNTIME][VCSTARTUP] Add separate vcruntime and vcstartup lib 2025-02-06 09:17:37 +02:00
heap [UCRTBASE] Build without debug exports 2025-03-24 23:02:06 +00:00
inc [UCRT] Fix GCC/Clang SIMD compilation 2025-07-29 09:22:15 +03:00
initializers [UCRT] Add CMake files 2025-01-16 14:18:53 +02:00
internal [UCRT] Add CMake files 2025-01-16 14:18:53 +02:00
locale [UCRT:LOCALE] Implement __acrt_WideCharToMultiByte 2025-01-26 18:08:55 +02:00
lowio [UCRT] Add CMake files 2025-01-16 14:18:53 +02:00
math [CRT:MATH] Move some math functions from ucrt to crt 2025-06-30 09:19:47 +00:00
mbstring [UCRT] Add CMake files 2025-01-16 14:18:53 +02:00
misc [UCRTBASE] Build without debug exports 2025-03-24 23:02:06 +00:00
startup [VCRUNTIME][VCSTARTUP] Add separate vcruntime and vcstartup lib 2025-02-06 09:17:37 +02:00
stdio [UCRT] Add CMake files 2025-01-16 14:18:53 +02:00
stdlib [UCRTBASE] Build without debug exports 2025-03-24 23:02:06 +00:00
string [UCRT] Fix GCC/Clang SIMD compilation 2025-07-29 09:22:15 +03:00
time [UCRT] Add CMake files 2025-01-16 14:18:53 +02:00
CMakeLists.txt [UCRTBASE] Build without debug exports 2025-03-24 23:02:06 +00:00