Timo Kreuzer
76086220fa
[CRT] Fix amd64 floating point control functions
2022-08-22 11:22:08 +02:00
Timo Kreuzer
bc9409daba
[CRT] Add round and roundf and add it to msvcrtex to make clang v14 happy
2022-07-17 17:32:32 +02:00
Timo Kreuzer
ba0d16f3b3
[CRT] Add missing OP_* constants in fpieee.h
2022-06-26 23:08:14 +02:00
Timo Kreuzer
b7c6170a5f
[CRT] Add emmintrin.h
...
Implementations are taken from clang.
2022-06-26 19:59:41 +02:00
Timo Kreuzer
8a67170616
[CRT_APITEST] Implement tests for fabs/fabsf
2022-06-26 19:13:47 +02:00
Timo Kreuzer
318d696f0e
[CRT] Implement xmmintrin.h
...
This includes inline functions for GCC/Clang.
Note: the previous GCC definition of __m128 was broken and didn't work.
2022-06-10 23:21:41 +02:00
Timo Kreuzer
9c8a2bbc81
[CRT] Implement mmintrin.h
...
This includes inline functions for GCC/Clang.
2022-06-10 23:21:41 +02:00
Timo Kreuzer
c34c5e29f0
[CRT] Move __INTRIN_INLINE to mingw32.h to be available everywhere
...
Also use __attribute__((artificial)) for clang, too.
2022-06-10 23:21:41 +02:00
Justin Miller
4363e74ddc
[REACTOS] Finally get some ARM64 applications building ( #4517 )
...
- Add some missing ARM64 exports to ntdll, kernel32 and user32
- Create mmtypes header file based on WoA debug symbols
- Get the remaining headers in order, so we can build ARM64 apps
- Adjust subsystem version for binaries so they can run on WoA host
- Get calc, notepad and more base apps to build for ARM64 platform
CORE-17518
Reviewed-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Reviewed-by: Stanislav Motylkov <x86corez@gmail.com>
2022-05-25 17:06:32 +03:00
Julen Urizar Compains
748d5c694e
[CRT] Fix MinGW-arm intrin minor bug in _byteswap_ushort ( #4475 )
...
A little bug were in the CRT, found with RosBE and cegcc compiler:
../sdk/include/crt/mingw32/intrin_arm.h:44:32: error: '<<' in boolean context, did you mean '<' ? [-Werror=int-in-bool-context]
Thanks to @HBelusca for suggesting the fix. CORE-17604
2022-04-30 01:24:49 +03:00
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