Justin Miller
2204695f0a
[SDK] Fix some arm64 stuff that was discovered during testing
...
Addendum to 6dfc13e4
. CORE-17518
2022-04-07 19:50:43 +03:00
Mark Jansen
f1132155d9
[SDK][CRT] Add _CRT_NON_CONFORMING_SWPRINTFS support
...
This allows us to easier port wine changes, where swprintf with a size is used a lot
2022-03-20 19:28:22 +01:00
Thomas Faber
b72efb6ca8
[CRT] Fix some inconsistent annotations in CRT headers.
...
This fixes about 5000 VS analysis warnings.
2022-02-17 22:01:37 -05:00
Serge Gautherie
9a523c8135
[CRT/arm64] Fix handling of intrinsics
...
Fix msvc14.1-arm64-Release build.
Follow-up to db41787
(0.4.15-dev-2914).
CORE-17518
2022-01-11 20:52:48 +03:00
Justin Miller
6dfc13e411
[CRT] Add vadefs macros for arm64 ( #4123 )
...
CORE-17621 CORE-17518
2021-12-09 17:16:20 +03:00
Justin Miller
51ce0c5150
[CRT] Add setjmp for the arm64 architecture ( #4088 )
...
CORE-17622 CORE-17518
2021-11-17 14:24:07 +03:00
Roman Masanin
554bbb6bab
[CRT/ARM] Floating point control functions implementation ( #3870 )
...
Implement controlfp, statusfp, fpreset, clearfp. CORE-17757 CORE-17604
2021-09-08 16:04:48 +03:00
Timo Kreuzer
379957424c
[CRT] Fix some _CRTIMP
...
Get rid of the ugly __MINGW_IMP_SYMBOL hacks.
2021-08-04 02:03:07 +02:00
Timo Kreuzer
b05cc36208
[CRT] Fix CRT headers a bit
...
* Remove unused internal version of float.h
* Define _STATIC_ASSERT in crtdefs.h
* Add some missing declarations
2021-08-04 02:03:07 +02:00
Timo Kreuzer
486a4d93ed
[CRT] Define NULL in crtdefs.h
2021-07-27 22:08:58 +02:00
Timo Kreuzer
db41787951
[CRT] Fix handling of intrinsics and inline functions
2021-07-11 21:45:29 +02:00
Jérôme Gardou
e10892e4f4
[CRT] Put __MINGW_EXTENSION (whatever that means) in front of function declarations
...
Needed for next commit
2021-06-28 10:20:57 +02:00
Victor Perevertkin
34593d933b
[FORMATTING][NTOS][HAL][DRIVERS][SDK] Fix trailing spaces
2021-06-11 15:33:08 +03:00
Jérôme Gardou
8aea84dab7
[CRT] Do not define builtin functions if not needed
2021-05-03 22:00:57 +02:00
Jérôme Gardou
976c4c10aa
[CRT] Fix SEH macros for clang x64
2021-05-03 22:00:57 +02:00
Jérôme Gardou
955b5c27b1
[CRT] Fix __ll_lshift, __ll_rshift and __ull_rshift intrinsics on gcc-amd64
2021-04-28 13:10:23 +02:00
Jérôme Gardou
a4138329a1
[CRT] Add macros to disable diagnostics from GCC and clang
...
Instead of disabling them globally, this will help making finer grained decisions
2021-04-28 13:10:23 +02:00
Serge Gautherie
b6493654a3
[CRT] intrin_x86.h: Fix '_InterlockedIncrement64' copypasta
...
Addendum to bc3a471
.
2021-04-27 10:36:54 +03:00
Katayama Hirofumi MZ
66f6abfc4a
[SDK][INCLUDE] Fix offsetof and CCSIZEOF_STRUCT for Clang-CL build ( #3624 )
...
Clang-CL was failing with "error: function declaration cannot have variably modified type". This PR will fix the Clang-CL build. CORE-17547
2021-04-25 13:38:22 +09:00
Jérôme Gardou
3731fd1661
[CRT] Properly declare rot functions in public headers
2021-04-09 15:12:13 +02:00
Jérôme Gardou
bc3a471413
[CRT] Do not try to implement x86_64 builtins of clang
2021-04-09 10:33:05 +02:00
Jérôme Gardou
97d4cb6ee0
[CRT] Declare strlen & wcslen as _CRTIMP
2021-03-03 08:34:32 +01:00
Jérôme Gardou
86a0852ffb
[SDK/CRT] Provide inline implementation of log2
2021-02-04 16:37:01 +01:00
Hervé Poussineau
e3cbdcf2e9
[CRT] Use correct prototypes for GCC x64
2021-01-05 14:19:45 +01:00
Hervé Poussineau
de647b4155
[CRT] Remove bad define of _int128 in GCC x64
2021-01-05 14:19:45 +01:00
Jérôme Gardou
3936c3f19e
[CRT] Fix __forceinline definition for clang
2020-11-16 16:58:10 +01:00
Jérôme Gardou
f96e47db43
[CRT] Fix intrinsics definition with clang
2020-11-16 16:58:10 +01:00
Timo Kreuzer
fe36f081c7
[COMPILER_APITEST] Add SEH tests from MS ( #2435 )
...
* [COMPILER_APITEST] Import MS EH/SEH tests
Taken from https://github.com/microsoft/compiler-tests
* [CRT] Add missing declaration of _longjmpex
* [COMPILER_APITEST] Add cmake build files for MS SEH test
It is built as a static library
* [COMPILER_APITEST] Fix GCC build of MS SEH tests
There are a number of hacks in there now. Also the volatile hacks should be separated and sent upstream.
* [COMPILER_APITEST] Fix x64 build of MS SEH tests
* [COMPILER_APITEST] Fix clang build of MS SEH tests
* [COMPILER_APITEST] Include MS SEH tests
2020-10-31 11:08:27 +01:00
Timo Kreuzer
0e5a4d5afe
[PSDK] Import some SAL headers from MS
...
Taken from https://github.com/microsoft/ChakraCore/tree/master/pal/inc/rt
* Move _Check_return_opt_ and _Check_return_wat_ to crtdefs.h
* Update sal.h from https://github.com/microsoft/ChakraCore/blob/master/pal/inc/rt/sal.h
* Import no_sal2.h from MS and remove the one in NDK
* Import specstrings.h from MS
* Import specstrings_strict.h from MS
* Add specstrings_undef.h (based on defines in specstrings_strict.h)
* Remove __REACTOS__ hacks from cdfs
2020-10-29 06:51:28 +01:00
Victor Perevertkin
87a5311116
[SDK] Fix __forceinline definition for C++
2020-09-24 05:33:35 +03:00
Jérôme Gardou
9fc0c7a372
[CRT] Let's have llabs for every compiler out there
2020-09-16 10:35:29 +02:00
Thomas Faber
1f0bbb3050
[CRT] Use builtin va_args macros for clang. CORE-17227
2020-08-30 09:09:04 +02:00
Thomas Faber
f86257259a
[CRT] Fix XMM intrinsics for clang. CORE-14306
2020-08-23 12:10:11 +02:00
Thomas Faber
08550a504e
[CRT] Make some more intrinsics conditional. CORE-17202
2020-08-23 12:07:37 +02:00
Mark Jansen
00ac9e763e
[INCLUDE/CRT] Add some debug macro implementations for _DEBUG
...
CORE-11834
2020-04-04 19:55:31 +02:00
Victor Perevertkin
0d6e522c6a
[SDK][CRT] Correct stdbool.h and remove an unused one
2020-02-15 18:39:01 +03:00
Timo Kreuzer
42d2d5ec9c
[ROSTESTS] fix x64 build and fix/disable warnings
2020-01-26 11:50:37 +01:00
Hermès Bélusca-Maïto
ef0a1eb527
[CRT] Define _INTEGRAL_MAX_BITS only if it isn't already defined by the compiler. CORE-16555
2020-01-03 19:33:21 +01:00
Hermès Bélusca-Maïto
912268762e
[SDK:CRT] For intrinsics that don't exist on MSVC 2010 we cannot use an implementation in inlined ASM for x64 builds.
2019-10-07 02:54:05 +02:00
Pierre Schweitzer
ddc853a4be
[SDK] Workaround MSVC2010 not having _Bool type
...
CORE-16366
2019-09-06 08:56:58 +02:00
Pierre Schweitzer
a0592b71e9
[CRT] Import stdbool.h from CLANG
...
CORE-16354
2019-09-02 08:19:48 +02:00
Timo Kreuzer
48f3efa254
[PSDK][CRT] Add some casts to make GCC 8 happy
2019-07-20 13:56:18 +02:00
Timo Kreuzer
f96407441c
[CRT] Remove _wctime_s from time.h
2019-07-20 13:56:18 +02:00
Timo Kreuzer
ead2156a29
[MINGW32] Add some definitions to fix building with GLIBCXX
2019-05-27 13:22:40 +02:00
Timo Kreuzer
81bdf4e360
[CRT] Add missing posix error codes
...
These are required by latest mingw-w64 stl and we are mixing this with our crt headers.
Define _CRT_NO_POSIX_ERROR_CODES in all modules that define their own constants.
2019-05-27 13:22:40 +02:00
Hervé Poussineau
a3e870be51
[SDK] Remove double declaration of _alloca
...
_alloca() is already defined in sdk/include/crt/malloc.h
2019-04-07 18:32:28 +02:00
Timo Kreuzer
afe203a1a5
[CRT] Don't define _DECLSPEC_I on Clang builds
2019-02-12 19:31:33 +01:00
Thomas Faber
0d6dcee968
[CRT] Use explicit C linkage for intrinsic functions.
...
Fixes MSVC warnings:
sdk\include\crt\xmmintrin.h(33): warning C4162: '_mm_getcsr': no function with C linkage found
sdk\include\crt\xmmintrin.h(35): warning C4162: '_mm_setcsr': no function with C linkage found
2018-12-19 10:55:20 +01:00
Mark Jansen
b5aa5bcdc1
[SDK] Define some constants for use with _mm_prefetch ( #1147 )
...
* [SDK] Define some constants for use with _mm_prefetch
This should fix the build for x64
Add __INTRIN_INLINE for gcc and clang
2018-12-16 23:25:52 +01:00
Amine Khaldi
0d35ee7ade
[INCLUDE/CRT] Add some throw() annotations. #179 #210
2017-12-25 12:56:16 +01:00