Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ieee754d.c File Reference
#include <linux/kernel.h>
#include "ieee754.h"

Go to the source code of this file.

Macros

#define DP_EBIAS   1023
 
#define DP_EMIN   (-1022)
 
#define DP_EMAX   1023
 
#define DP_FBITS   52
 
#define SP_EBIAS   127
 
#define SP_EMIN   (-126)
 
#define SP_EMAX   127
 
#define SP_FBITS   23
 
#define DP_MBIT(x)   ((u64)1 << (x))
 
#define DP_HIDDEN_BIT   DP_MBIT(DP_FBITS)
 
#define DP_SIGN_BIT   DP_MBIT(63)
 
#define SP_MBIT(x)   ((u32)1 << (x))
 
#define SP_HIDDEN_BIT   SP_MBIT(SP_FBITS)
 
#define SP_SIGN_BIT   SP_MBIT(31)
 
#define SPSIGN(sp)   (sp.parts.sign)
 
#define SPBEXP(sp)   (sp.parts.bexp)
 
#define SPMANT(sp)   (sp.parts.mant)
 
#define DPSIGN(dp)   (dp.parts.sign)
 
#define DPBEXP(dp)   (dp.parts.bexp)
 
#define DPMANT(dp)   (dp.parts.mant)
 

Functions

ieee754dp ieee754dp_dump (char *m, ieee754dp x)
 
ieee754sp ieee754sp_dump (char *m, ieee754sp x)
 

Macro Definition Documentation

#define DP_EBIAS   1023

Definition at line 31 of file ieee754d.c.

#define DP_EMAX   1023

Definition at line 33 of file ieee754d.c.

#define DP_EMIN   (-1022)

Definition at line 32 of file ieee754d.c.

#define DP_FBITS   52

Definition at line 34 of file ieee754d.c.

#define DP_HIDDEN_BIT   DP_MBIT(DP_FBITS)

Definition at line 42 of file ieee754d.c.

#define DP_MBIT (   x)    ((u64)1 << (x))

Definition at line 41 of file ieee754d.c.

#define DP_SIGN_BIT   DP_MBIT(63)

Definition at line 43 of file ieee754d.c.

#define DPBEXP (   dp)    (dp.parts.bexp)

Definition at line 56 of file ieee754d.c.

#define DPMANT (   dp)    (dp.parts.mant)

Definition at line 57 of file ieee754d.c.

#define DPSIGN (   dp)    (dp.parts.sign)

Definition at line 55 of file ieee754d.c.

#define SP_EBIAS   127

Definition at line 36 of file ieee754d.c.

#define SP_EMAX   127

Definition at line 38 of file ieee754d.c.

#define SP_EMIN   (-126)

Definition at line 37 of file ieee754d.c.

#define SP_FBITS   23

Definition at line 39 of file ieee754d.c.

#define SP_HIDDEN_BIT   SP_MBIT(SP_FBITS)

Definition at line 47 of file ieee754d.c.

#define SP_MBIT (   x)    ((u32)1 << (x))

Definition at line 46 of file ieee754d.c.

#define SP_SIGN_BIT   SP_MBIT(31)

Definition at line 48 of file ieee754d.c.

#define SPBEXP (   sp)    (sp.parts.bexp)

Definition at line 52 of file ieee754d.c.

#define SPMANT (   sp)    (sp.parts.mant)

Definition at line 53 of file ieee754d.c.

#define SPSIGN (   sp)    (sp.parts.sign)

Definition at line 51 of file ieee754d.c.

Function Documentation

ieee754dp ieee754dp_dump ( char m,
ieee754dp  x 
)

Definition at line 59 of file ieee754d.c.

ieee754sp ieee754sp_dump ( char m,
ieee754sp  x 
)

Definition at line 99 of file ieee754d.c.