Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
ieee754.c File Reference
#include "ieee754int.h"
#include "ieee754sp.h"
#include "ieee754dp.h"

Go to the source code of this file.

Macros

#define DP_EBIAS   1023
 
#define DP_EMIN   (-1022)
 
#define DP_EMAX   1023
 
#define SP_EBIAS   127
 
#define SP_EMIN   (-126)
 
#define SP_EMAX   127
 

Functions

int ieee754si_xcpt (int r, const char *op,...)
 
s64 ieee754di_xcpt (s64 r, const char *op,...)
 

Variables

struct ieee754dp_konst __ieee754dp_spcvals []
 
struct ieee754sp_konst __ieee754sp_spcvals []
 

Macro Definition Documentation

#define DP_EBIAS   1023

Definition at line 36 of file ieee754.c.

#define DP_EMAX   1023

Definition at line 38 of file ieee754.c.

#define DP_EMIN   (-1022)

Definition at line 37 of file ieee754.c.

#define SP_EBIAS   127

Definition at line 40 of file ieee754.c.

#define SP_EMAX   127

Definition at line 42 of file ieee754.c.

#define SP_EMIN   (-126)

Definition at line 41 of file ieee754.c.

Function Documentation

s64 ieee754di_xcpt ( s64  r,
const char op,
  ... 
)

Definition at line 114 of file ieee754.c.

int ieee754si_xcpt ( int  r,
const char op,
  ... 
)

Definition at line 99 of file ieee754.c.

Variable Documentation

struct ieee754dp_konst __ieee754dp_spcvals[]
Initial value:
= {
DPSTR(0, DP_EMIN - 1 + DP_EBIAS, 0, 0),
DPSTR(1, DP_EMIN - 1 + DP_EBIAS, 0, 0),
DPSTR(0, DP_EBIAS, 0, 0),
DPSTR(1, DP_EBIAS, 0, 0),
DPSTR(0, 3 + DP_EBIAS, 0x40000, 0),
DPSTR(1, 3 + DP_EBIAS, 0x40000, 0),
DPSTR(0, DP_EMAX + 1 + DP_EBIAS, 0, 0),
DPSTR(1, DP_EMAX + 1 + DP_EBIAS, 0, 0),
DPSTR(0, DP_EMAX+1+DP_EBIAS, 0x7FFFF, 0xFFFFFFFF),
DPSTR(0, DP_EMAX + DP_EBIAS, 0xFFFFF, 0xFFFFFFFF),
DPSTR(1, DP_EMAX + DP_EBIAS, 0xFFFFF, 0xFFFFFFFF),
DPSTR(0, DP_EMIN + DP_EBIAS, 0, 0),
DPSTR(1, DP_EMIN + DP_EBIAS, 0, 0),
DPSTR(0, DP_EMIN - 1 + DP_EBIAS, 0, 1),
DPSTR(1, DP_EMIN - 1 + DP_EBIAS, 0, 1),
DPSTR(0, 31 + DP_EBIAS, 0, 0),
DPSTR(0, 63 + DP_EBIAS, 0, 0),
}

Definition at line 58 of file ieee754.c.

struct ieee754sp_konst __ieee754sp_spcvals[]
Initial value:
= {
SPSTR(0, SP_EMIN - 1 + SP_EBIAS, 0),
SPSTR(1, SP_EMIN - 1 + SP_EBIAS, 0),
SPSTR(0, SP_EBIAS, 0),
SPSTR(1, SP_EBIAS, 0),
SPSTR(0, 3 + SP_EBIAS, 0x200000),
SPSTR(1, 3 + SP_EBIAS, 0x200000),
SPSTR(0, SP_EMAX + 1 + SP_EBIAS, 0),
SPSTR(1, SP_EMAX + 1 + SP_EBIAS, 0),
SPSTR(0, SP_EMAX+1+SP_EBIAS, 0x3FFFFF),
SPSTR(0, SP_EMAX + SP_EBIAS, 0x7FFFFF),
SPSTR(1, SP_EMAX + SP_EBIAS, 0x7FFFFF),
SPSTR(0, SP_EMIN + SP_EBIAS, 0),
SPSTR(1, SP_EMIN + SP_EBIAS, 0),
SPSTR(0, SP_EMIN - 1 + SP_EBIAS, 1),
SPSTR(1, SP_EMIN - 1 + SP_EBIAS, 1),
SPSTR(0, 31 + SP_EBIAS, 0),
SPSTR(0, 63 + SP_EBIAS, 0),
}

Definition at line 78 of file ieee754.c.