From 6af8dff1f8f6743ba6420599a3fcd634ecc9373d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Wed, 4 Feb 2015 03:12:03 +0000 Subject: [PATCH] [FAST486]: Use a more "regular" syntax (i.e. understandable by other compilers than GCC). svn path=/trunk/; revision=66155 --- reactos/lib/fast486/fpu.c | 84 +++++++++++++++++++-------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/reactos/lib/fast486/fpu.c b/reactos/lib/fast486/fpu.c index 7a2aad3bb4b..b416e7797c0 100644 --- a/reactos/lib/fast486/fpu.c +++ b/reactos/lib/fast486/fpu.c @@ -33,60 +33,60 @@ /* CONSTANTS ******************************************************************/ /* 0.00 */ -static const FAST486_FPU_DATA_REG FpuZero = -{ - .Sign = FALSE, - .Exponent = 0, - .Mantissa = 0ULL -}; +static const FAST486_FPU_DATA_REG FpuZero = {0ULL, 0, FALSE}; +// { +// .Sign = FALSE, +// .Exponent = 0, +// .Mantissa = 0ULL +// }; /* 1.00 */ -static const FAST486_FPU_DATA_REG FpuOne = -{ - .Sign = FALSE, - .Exponent = FPU_REAL10_BIAS, - .Mantissa = 0x8000000000000000ULL -}; +static const FAST486_FPU_DATA_REG FpuOne = {0x8000000000000000ULL, FPU_REAL10_BIAS, FALSE}; +// { +// .Sign = FALSE, +// .Exponent = FPU_REAL10_BIAS, +// .Mantissa = 0x8000000000000000ULL +// }; /* Pi */ -static const FAST486_FPU_DATA_REG FpuPi = -{ - .Sign = FALSE, - .Exponent = FPU_REAL10_BIAS + 1, - .Mantissa = 0xC90FDAA22168C234ULL -}; +static const FAST486_FPU_DATA_REG FpuPi = {0xC90FDAA22168C234ULL, FPU_REAL10_BIAS + 1, FALSE}; +// { +// .Sign = FALSE, +// .Exponent = FPU_REAL10_BIAS + 1, +// .Mantissa = 0xC90FDAA22168C234ULL +// }; /* lb(10) */ -static const FAST486_FPU_DATA_REG FpuL2Ten = -{ - .Sign = FALSE, - .Exponent = FPU_REAL10_BIAS + 1, - .Mantissa = 0xD49A784BCD1D8AFEULL -}; +static const FAST486_FPU_DATA_REG FpuL2Ten = {0xD49A784BCD1D8AFEULL, FPU_REAL10_BIAS + 1, FALSE}; +// { +// .Sign = FALSE, +// .Exponent = FPU_REAL10_BIAS + 1, +// .Mantissa = 0xD49A784BCD1D8AFEULL +// }; /* lb(e) */ -static const FAST486_FPU_DATA_REG FpuL2E = -{ - .Sign = FALSE, - .Exponent = FPU_REAL10_BIAS, - .Mantissa = 0xB8AA3B295C17F0BBULL -}; +static const FAST486_FPU_DATA_REG FpuL2E = {0xB8AA3B295C17F0BBULL, FPU_REAL10_BIAS, FALSE}; +// { +// .Sign = FALSE, +// .Exponent = FPU_REAL10_BIAS, +// .Mantissa = 0xB8AA3B295C17F0BBULL +// }; /* lg(2) */ -static const FAST486_FPU_DATA_REG FpuLgTwo = -{ - .Sign = FALSE, - .Exponent = FPU_REAL10_BIAS - 2, - .Mantissa = 0x9A209A84FBCFF798ULL -}; +static const FAST486_FPU_DATA_REG FpuLgTwo = {0x9A209A84FBCFF798ULL, FPU_REAL10_BIAS - 2, FALSE}; +// { +// .Sign = FALSE, +// .Exponent = FPU_REAL10_BIAS - 2, +// .Mantissa = 0x9A209A84FBCFF798ULL +// }; /* ln(2) */ -static const FAST486_FPU_DATA_REG FpuLnTwo = -{ - .Sign = FALSE, - .Exponent = FPU_REAL10_BIAS - 1, - .Mantissa = 0xB17217F7D1CF79ABULL -}; +static const FAST486_FPU_DATA_REG FpuLnTwo = {0xB17217F7D1CF79ABULL, FPU_REAL10_BIAS - 1, FALSE}; +// { +// .Sign = FALSE, +// .Exponent = FPU_REAL10_BIAS - 1, +// .Mantissa = 0xB17217F7D1CF79ABULL +// }; /* PRIVATE FUNCTIONS **********************************************************/