Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_libc_ieee_h__
  3. #define __dj_include_libc_ieee_h__
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  10.  
  11. #ifndef __STRICT_ANSI__
  12.  
  13. #ifndef _POSIX_SOURCE
  14.  
  15. typedef struct {
  16.   unsigned mantissa:23;
  17.   unsigned exponent:8;
  18.   unsigned sign:1;
  19. } float_t;
  20.  
  21. typedef struct {
  22.   unsigned mantissal:32;
  23.   unsigned mantissah:20;
  24.   unsigned exponent:11;
  25.   unsigned sign:1;
  26. } double_t;
  27.  
  28. typedef struct {
  29.   unsigned mantissal:32;
  30.   unsigned mantissah:32;
  31.   unsigned exponent:15;
  32.   unsigned sign:1;
  33. } long_double_t;
  34.  
  35. #endif /* !_POSIX_SOURCE */
  36. #endif /* !__STRICT_ANSI__ */
  37. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  38.  
  39. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  40. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  41.  
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45.  
  46. #endif /* __dj_include_libc_ieee_h__ */
  47.