QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
test-half.c File Reference

Macros

#define num_tests   (sizeof (tests) / sizeof (tests[0]))
 

Functions

int main (int argc, const char **argv)
 

Variables

struct {
   float   flt
 
   int16_t   half
 
tests []
 

Macro Definition Documentation

#define num_tests   (sizeof (tests) / sizeof (tests[0]))

Function Documentation

int main ( int  argc,
const char **  argv 
)

Variable Documentation

float flt
int16_t half
struct { ... } tests[]
Initial value:
= {
{0x3c00, 1.0f},
{0x3c01, 1.0009765625f},
{0xc000, -2.0f},
{0x7bff, 65504.0f},
{0x0400, 6.103515625e-05f},
{0x03ff, 6.0975551605224609375e-05f},
{0x0001, 5.9604644775390625e-08f},
{0x0000, 0.0f},
{0x8000, -0.0f},
{0x3555, 0.333251953125f},
{0x3e00, 1.5f},
{0x0000, 0.0f},
}