Revision d2b1027d
b/fpu/softfloat-native.h | ||
---|---|---|
172 | 172 |
#endif |
173 | 173 |
|
174 | 174 |
/*---------------------------------------------------------------------------- |
175 |
| Software IEC/IEEE single-precision conversion constants. |
|
176 |
*----------------------------------------------------------------------------*/ |
|
177 |
#define float32_zero (0.0) |
|
178 |
#define float32_one (1.0) |
|
179 |
#define float32_ln2 (0.6931471) |
|
180 |
#define float32_pi (3.1415926) |
|
181 |
#define float32_half (0.5) |
|
182 |
|
|
183 |
/*---------------------------------------------------------------------------- |
|
175 | 184 |
| Software IEC/IEEE single-precision conversion routines. |
176 | 185 |
*----------------------------------------------------------------------------*/ |
177 | 186 |
int float32_to_int32( float32 STATUS_PARAM); |
... | ... | |
280 | 289 |
} |
281 | 290 |
|
282 | 291 |
/*---------------------------------------------------------------------------- |
292 |
| Software IEC/IEEE double-precision conversion constants. |
|
293 |
*----------------------------------------------------------------------------*/ |
|
294 |
#define float64_zero (0.0) |
|
295 |
#define float64_one (1.0) |
|
296 |
#define float64_ln2 (0.693147180559945) |
|
297 |
#define float64_pi (3.141592653589793) |
|
298 |
#define float64_half (0.5) |
|
299 |
|
|
300 |
/*---------------------------------------------------------------------------- |
|
283 | 301 |
| Software IEC/IEEE double-precision conversion routines. |
284 | 302 |
*----------------------------------------------------------------------------*/ |
285 | 303 |
int float64_to_int32( float64 STATUS_PARAM ); |
... | ... | |
394 | 412 |
#ifdef FLOATX80 |
395 | 413 |
|
396 | 414 |
/*---------------------------------------------------------------------------- |
415 |
| Software IEC/IEEE extended double-precision conversion constants. |
|
416 |
*----------------------------------------------------------------------------*/ |
|
417 |
#define floatx80_zero (0.0L) |
|
418 |
#define floatx80_one (1.0L) |
|
419 |
#define floatx80_ln2 (0.69314718055994530943L) |
|
420 |
#define floatx80_pi (3.14159265358979323851L) |
|
421 |
#define floatx80_half (0.5L) |
|
422 |
|
|
423 |
/*---------------------------------------------------------------------------- |
|
397 | 424 |
| Software IEC/IEEE extended double-precision conversion routines. |
398 | 425 |
*----------------------------------------------------------------------------*/ |
399 | 426 |
int floatx80_to_int32( floatx80 STATUS_PARAM ); |
Also available in: Unified diff