comparison libgcc/fp-bit.h @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 /* Header file for fp-bit.c. */ 1 /* Header file for fp-bit.c. */
2 /* Copyright (C) 2000-2018 Free Software Foundation, Inc. 2 /* Copyright (C) 2000-2020 Free Software Foundation, Inc.
3 3
4 This file is part of GCC. 4 This file is part of GCC.
5 5
6 GCC is free software; you can redistribute it and/or modify it under 6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free 7 the terms of the GNU General Public License as published by the Free
124 #define BITS_PER_DI (8 * __CHAR_BIT__) 124 #define BITS_PER_DI (8 * __CHAR_BIT__)
125 #endif 125 #endif
126 126
127 #ifdef FLOAT_ONLY 127 #ifdef FLOAT_ONLY
128 #define NO_DI_MODE 128 #define NO_DI_MODE
129 #endif
130
131 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
132 #define FLOAT_BIT_ORDER_MISMATCH
133 #endif 129 #endif
134 130
135 #if __BYTE_ORDER__ != __FLOAT_WORD_ORDER__ 131 #if __BYTE_ORDER__ != __FLOAT_WORD_ORDER__
136 #define FLOAT_WORD_ORDER_MISMATCH 132 #define FLOAT_WORD_ORDER_MISMATCH
137 #endif 133 #endif
352 # else 348 # else
353 halffractype words[2]; 349 halffractype words[2];
354 # endif 350 # endif
355 #endif 351 #endif
356 352
357 #ifdef FLOAT_BIT_ORDER_MISMATCH
358 struct
359 {
360 fractype fraction:FRACBITS __attribute__ ((packed));
361 unsigned int exp:EXPBITS __attribute__ ((packed));
362 unsigned int sign:1 __attribute__ ((packed));
363 }
364 bits;
365 #endif
366
367 #ifdef _DEBUG_BITFLOAT 353 #ifdef _DEBUG_BITFLOAT
368 struct 354 struct
369 { 355 {
370 unsigned int sign:1 __attribute__ ((packed)); 356 unsigned int sign:1 __attribute__ ((packed));
371 unsigned int exp:EXPBITS __attribute__ ((packed)); 357 unsigned int exp:EXPBITS __attribute__ ((packed));