Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include
File: ieee754.h
/* Copyright (C) 1992-2018 Free Software Foundation, Inc.
[0] Fix | Delete
This file is part of the GNU C Library.
[1] Fix | Delete
[2] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[3] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[4] Fix | Delete
License as published by the Free Software Foundation; either
[5] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[6] Fix | Delete
[7] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[8] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[9] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[10] Fix | Delete
Lesser General Public License for more details.
[11] Fix | Delete
[12] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[13] Fix | Delete
License along with the GNU C Library; if not, see
[14] Fix | Delete
<http://www.gnu.org/licenses/>. */
[15] Fix | Delete
[16] Fix | Delete
#ifndef _IEEE754_H
[17] Fix | Delete
[18] Fix | Delete
#define _IEEE754_H 1
[19] Fix | Delete
#include <features.h>
[20] Fix | Delete
[21] Fix | Delete
#include <endian.h>
[22] Fix | Delete
[23] Fix | Delete
__BEGIN_DECLS
[24] Fix | Delete
[25] Fix | Delete
union ieee754_float
[26] Fix | Delete
{
[27] Fix | Delete
float f;
[28] Fix | Delete
[29] Fix | Delete
/* This is the IEEE 754 single-precision format. */
[30] Fix | Delete
struct
[31] Fix | Delete
{
[32] Fix | Delete
#if __BYTE_ORDER == __BIG_ENDIAN
[33] Fix | Delete
unsigned int negative:1;
[34] Fix | Delete
unsigned int exponent:8;
[35] Fix | Delete
unsigned int mantissa:23;
[36] Fix | Delete
#endif /* Big endian. */
[37] Fix | Delete
#if __BYTE_ORDER == __LITTLE_ENDIAN
[38] Fix | Delete
unsigned int mantissa:23;
[39] Fix | Delete
unsigned int exponent:8;
[40] Fix | Delete
unsigned int negative:1;
[41] Fix | Delete
#endif /* Little endian. */
[42] Fix | Delete
} ieee;
[43] Fix | Delete
[44] Fix | Delete
/* This format makes it easier to see if a NaN is a signalling NaN. */
[45] Fix | Delete
struct
[46] Fix | Delete
{
[47] Fix | Delete
#if __BYTE_ORDER == __BIG_ENDIAN
[48] Fix | Delete
unsigned int negative:1;
[49] Fix | Delete
unsigned int exponent:8;
[50] Fix | Delete
unsigned int quiet_nan:1;
[51] Fix | Delete
unsigned int mantissa:22;
[52] Fix | Delete
#endif /* Big endian. */
[53] Fix | Delete
#if __BYTE_ORDER == __LITTLE_ENDIAN
[54] Fix | Delete
unsigned int mantissa:22;
[55] Fix | Delete
unsigned int quiet_nan:1;
[56] Fix | Delete
unsigned int exponent:8;
[57] Fix | Delete
unsigned int negative:1;
[58] Fix | Delete
#endif /* Little endian. */
[59] Fix | Delete
} ieee_nan;
[60] Fix | Delete
};
[61] Fix | Delete
[62] Fix | Delete
#define IEEE754_FLOAT_BIAS 0x7f /* Added to exponent. */
[63] Fix | Delete
[64] Fix | Delete
[65] Fix | Delete
union ieee754_double
[66] Fix | Delete
{
[67] Fix | Delete
double d;
[68] Fix | Delete
[69] Fix | Delete
/* This is the IEEE 754 double-precision format. */
[70] Fix | Delete
struct
[71] Fix | Delete
{
[72] Fix | Delete
#if __BYTE_ORDER == __BIG_ENDIAN
[73] Fix | Delete
unsigned int negative:1;
[74] Fix | Delete
unsigned int exponent:11;
[75] Fix | Delete
/* Together these comprise the mantissa. */
[76] Fix | Delete
unsigned int mantissa0:20;
[77] Fix | Delete
unsigned int mantissa1:32;
[78] Fix | Delete
#endif /* Big endian. */
[79] Fix | Delete
#if __BYTE_ORDER == __LITTLE_ENDIAN
[80] Fix | Delete
# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
[81] Fix | Delete
unsigned int mantissa0:20;
[82] Fix | Delete
unsigned int exponent:11;
[83] Fix | Delete
unsigned int negative:1;
[84] Fix | Delete
unsigned int mantissa1:32;
[85] Fix | Delete
# else
[86] Fix | Delete
/* Together these comprise the mantissa. */
[87] Fix | Delete
unsigned int mantissa1:32;
[88] Fix | Delete
unsigned int mantissa0:20;
[89] Fix | Delete
unsigned int exponent:11;
[90] Fix | Delete
unsigned int negative:1;
[91] Fix | Delete
# endif
[92] Fix | Delete
#endif /* Little endian. */
[93] Fix | Delete
} ieee;
[94] Fix | Delete
[95] Fix | Delete
/* This format makes it easier to see if a NaN is a signalling NaN. */
[96] Fix | Delete
struct
[97] Fix | Delete
{
[98] Fix | Delete
#if __BYTE_ORDER == __BIG_ENDIAN
[99] Fix | Delete
unsigned int negative:1;
[100] Fix | Delete
unsigned int exponent:11;
[101] Fix | Delete
unsigned int quiet_nan:1;
[102] Fix | Delete
/* Together these comprise the mantissa. */
[103] Fix | Delete
unsigned int mantissa0:19;
[104] Fix | Delete
unsigned int mantissa1:32;
[105] Fix | Delete
#else
[106] Fix | Delete
# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
[107] Fix | Delete
unsigned int mantissa0:19;
[108] Fix | Delete
unsigned int quiet_nan:1;
[109] Fix | Delete
unsigned int exponent:11;
[110] Fix | Delete
unsigned int negative:1;
[111] Fix | Delete
unsigned int mantissa1:32;
[112] Fix | Delete
# else
[113] Fix | Delete
/* Together these comprise the mantissa. */
[114] Fix | Delete
unsigned int mantissa1:32;
[115] Fix | Delete
unsigned int mantissa0:19;
[116] Fix | Delete
unsigned int quiet_nan:1;
[117] Fix | Delete
unsigned int exponent:11;
[118] Fix | Delete
unsigned int negative:1;
[119] Fix | Delete
# endif
[120] Fix | Delete
#endif
[121] Fix | Delete
} ieee_nan;
[122] Fix | Delete
};
[123] Fix | Delete
[124] Fix | Delete
#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
[125] Fix | Delete
[126] Fix | Delete
[127] Fix | Delete
union ieee854_long_double
[128] Fix | Delete
{
[129] Fix | Delete
long double d;
[130] Fix | Delete
[131] Fix | Delete
/* This is the IEEE 854 double-extended-precision format. */
[132] Fix | Delete
struct
[133] Fix | Delete
{
[134] Fix | Delete
#if __BYTE_ORDER == __BIG_ENDIAN
[135] Fix | Delete
unsigned int negative:1;
[136] Fix | Delete
unsigned int exponent:15;
[137] Fix | Delete
unsigned int empty:16;
[138] Fix | Delete
unsigned int mantissa0:32;
[139] Fix | Delete
unsigned int mantissa1:32;
[140] Fix | Delete
#endif
[141] Fix | Delete
#if __BYTE_ORDER == __LITTLE_ENDIAN
[142] Fix | Delete
# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
[143] Fix | Delete
unsigned int exponent:15;
[144] Fix | Delete
unsigned int negative:1;
[145] Fix | Delete
unsigned int empty:16;
[146] Fix | Delete
unsigned int mantissa0:32;
[147] Fix | Delete
unsigned int mantissa1:32;
[148] Fix | Delete
# else
[149] Fix | Delete
unsigned int mantissa1:32;
[150] Fix | Delete
unsigned int mantissa0:32;
[151] Fix | Delete
unsigned int exponent:15;
[152] Fix | Delete
unsigned int negative:1;
[153] Fix | Delete
unsigned int empty:16;
[154] Fix | Delete
# endif
[155] Fix | Delete
#endif
[156] Fix | Delete
} ieee;
[157] Fix | Delete
[158] Fix | Delete
/* This is for NaNs in the IEEE 854 double-extended-precision format. */
[159] Fix | Delete
struct
[160] Fix | Delete
{
[161] Fix | Delete
#if __BYTE_ORDER == __BIG_ENDIAN
[162] Fix | Delete
unsigned int negative:1;
[163] Fix | Delete
unsigned int exponent:15;
[164] Fix | Delete
unsigned int empty:16;
[165] Fix | Delete
unsigned int one:1;
[166] Fix | Delete
unsigned int quiet_nan:1;
[167] Fix | Delete
unsigned int mantissa0:30;
[168] Fix | Delete
unsigned int mantissa1:32;
[169] Fix | Delete
#endif
[170] Fix | Delete
#if __BYTE_ORDER == __LITTLE_ENDIAN
[171] Fix | Delete
# if __FLOAT_WORD_ORDER == __BIG_ENDIAN
[172] Fix | Delete
unsigned int exponent:15;
[173] Fix | Delete
unsigned int negative:1;
[174] Fix | Delete
unsigned int empty:16;
[175] Fix | Delete
unsigned int mantissa0:30;
[176] Fix | Delete
unsigned int quiet_nan:1;
[177] Fix | Delete
unsigned int one:1;
[178] Fix | Delete
unsigned int mantissa1:32;
[179] Fix | Delete
# else
[180] Fix | Delete
unsigned int mantissa1:32;
[181] Fix | Delete
unsigned int mantissa0:30;
[182] Fix | Delete
unsigned int quiet_nan:1;
[183] Fix | Delete
unsigned int one:1;
[184] Fix | Delete
unsigned int exponent:15;
[185] Fix | Delete
unsigned int negative:1;
[186] Fix | Delete
unsigned int empty:16;
[187] Fix | Delete
# endif
[188] Fix | Delete
#endif
[189] Fix | Delete
} ieee_nan;
[190] Fix | Delete
};
[191] Fix | Delete
[192] Fix | Delete
#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
[193] Fix | Delete
[194] Fix | Delete
__END_DECLS
[195] Fix | Delete
[196] Fix | Delete
#endif /* ieee754.h */
[197] Fix | Delete
[198] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function