kernel32/tests: Add test for FPU control words on ARM64EC.

This commit is contained in:
Alexandre Julliard 2024-06-06 11:09:31 +02:00
parent 32585b11d5
commit 5ae8bf3d93

View file

@ -1889,7 +1889,13 @@ struct fpu_thread_ctx
static inline unsigned long get_fpu_cw(void)
{
#if defined(__i386__) || defined(__x86_64__)
#ifdef __arm64ec__
extern NTSTATUS (*__os_arm64x_get_x64_information)(ULONG,void*,void*);
unsigned int cw, sse;
__os_arm64x_get_x64_information( 0, &sse, NULL );
__os_arm64x_get_x64_information( 2, &cw, NULL );
return MAKELONG( cw, sse );
#elif defined(__i386__) || defined(__x86_64__)
WORD cw = 0;
unsigned int sse = 0;
#ifdef _MSC_VER