Print this page
10495 libc should know how many FPU exceptions there are


  45  * <floatingpoint.h> contains definitions for constants, types, variables,
  46  * and functions for:
  47  *      IEEE floating-point arithmetic base conversion;
  48  *      IEEE floating-point arithmetic modes;
  49  *      IEEE floating-point arithmetic exception handling.
  50  */
  51 
  52 #ifndef __P
  53 #ifdef __STDC__
  54 #define __P(p)  p
  55 #else
  56 #define __P(p)  ()
  57 #endif
  58 #endif  /* !defined(__P) */
  59 
  60 #if defined(__STDC__) && !defined(_FILEDEFED)
  61 #define _FILEDEFED
  62 typedef __FILE FILE;
  63 #endif
  64 
  65 #define N_IEEE_EXCEPTION 5      /* Number of floating-point exceptions. */
  66 
  67 typedef int sigfpe_code_type;   /* Type of SIGFPE code. */
  68 
  69 typedef void (*sigfpe_handler_type)();  /* Pointer to exception handler */
  70 
  71 #define SIGFPE_DEFAULT (void (*)())0    /* default exception handling */
  72 #define SIGFPE_IGNORE  (void (*)())1    /* ignore this exception or code */
  73 #define SIGFPE_ABORT   (void (*)())2    /* force abort on exception */
  74 
  75 extern sigfpe_handler_type sigfpe __P((sigfpe_code_type, sigfpe_handler_type));
  76 
  77 /*
  78  * Types for IEEE floating point.
  79  */
  80 typedef float single;
  81 
  82 #ifndef _EXTENDED
  83 #define _EXTENDED
  84 typedef unsigned extended[3];
  85 #endif
  86 




  45  * <floatingpoint.h> contains definitions for constants, types, variables,
  46  * and functions for:
  47  *      IEEE floating-point arithmetic base conversion;
  48  *      IEEE floating-point arithmetic modes;
  49  *      IEEE floating-point arithmetic exception handling.
  50  */
  51 
  52 #ifndef __P
  53 #ifdef __STDC__
  54 #define __P(p)  p
  55 #else
  56 #define __P(p)  ()
  57 #endif
  58 #endif  /* !defined(__P) */
  59 
  60 #if defined(__STDC__) && !defined(_FILEDEFED)
  61 #define _FILEDEFED
  62 typedef __FILE FILE;
  63 #endif
  64 


  65 typedef int sigfpe_code_type;   /* Type of SIGFPE code. */
  66 
  67 typedef void (*sigfpe_handler_type)();  /* Pointer to exception handler */
  68 
  69 #define SIGFPE_DEFAULT (void (*)())0    /* default exception handling */
  70 #define SIGFPE_IGNORE  (void (*)())1    /* ignore this exception or code */
  71 #define SIGFPE_ABORT   (void (*)())2    /* force abort on exception */
  72 
  73 extern sigfpe_handler_type sigfpe __P((sigfpe_code_type, sigfpe_handler_type));
  74 
  75 /*
  76  * Types for IEEE floating point.
  77  */
  78 typedef float single;
  79 
  80 #ifndef _EXTENDED
  81 #define _EXTENDED
  82 typedef unsigned extended[3];
  83 #endif
  84