Open Inventor Reference
MeVis/ThirdParty/Sources/Inventor/inventor/lib/database/include/Inventor/SoMachine.h File Reference

Go to the source code of this file.

Defines

#define __i386__   1
#define MACHINE_WORD_FORMAT   DGL_LITTLE_ENDIAN
#define MACHINE_FLOAT_FORMAT   DGL_NON_IEEE
#define MACHINE_WORD_FORMAT   DGL_LITTLE_ENDIAN
#define MACHINE_FLOAT_FORMAT   DGL_NON_IEEE
#define M_SIZEOF(x)   sizeof(x)
#define DGL_LITTLE_ENDIAN   1
#define DGL_BIG_ENDIAN   2
#define DGL_BIG_IEEE   1
#define DGL_NON_IEEE   3
#define DGL_HTON_SHORT(t, f)
#define DGL_NTOH_SHORT   DGL_HTON_SHORT
#define DGL_HTON_INT32(t, f)
#define DGL_NTOH_INT32   DGL_HTON_INT32
#define DGL_HTON_FLOAT(t, f)   mem_hton_float(&t,&f)
#define DGL_NTOH_FLOAT(t, f)   mem_ntoh_float(&t,&f)
#define DGL_HTON_DOUBLE(t, f)   mem_hton_double(&t,&f)
#define DGL_NTOH_DOUBLE(t, f)   mem_ntoh_double(&t,&f)
#define INT32(p)   (*(int32_t *)(p))
#define FLOAT(p)   (*(float *)(p))
#define DOUBLE(p)   (*(double *)(p))
#define SHORT(p)   (*(short *)(p))

Functions

void mem_hton_float (float *t, float *f)
void mem_ntoh_float (float *t, float *f)
void mem_hton_double (double *t, double *f)
void mem_ntoh_double (double *t, double *f)

Define Documentation

#define __i386__   1

Definition at line 132 of file SoMachine.h.

#define DGL_BIG_ENDIAN   2

Definition at line 197 of file SoMachine.h.

#define DGL_BIG_IEEE   1

Definition at line 199 of file SoMachine.h.

#define DGL_HTON_DOUBLE (   t,
 
)    mem_hton_double(&t,&f)

Definition at line 272 of file SoMachine.h.

#define DGL_HTON_FLOAT (   t,
 
)    mem_hton_float(&t,&f)

Definition at line 270 of file SoMachine.h.

#define DGL_HTON_INT32 (   t,
 
)
Value:
{                       \
                int32_t _from = f,_to;  \
                ((char *)&_to)[0] = ((char *)&_from)[3];        \
                ((char *)&_to)[1] = ((char *)&_from)[2];        \
                ((char *)&_to)[2] = ((char *)&_from)[1];        \
                ((char *)&_to)[3] = ((char *)&_from)[0];        \
                t = _to;        \
        }

Definition at line 244 of file SoMachine.h.

#define DGL_HTON_SHORT (   t,
 
)
Value:
{                       \
                short _from = f,_to;    \
                ((char *)&_to)[0] = ((char *)&_from)[1];        \
                ((char *)&_to)[1] = ((char *)&_from)[0];        \
                t = _to;        \
        }

Definition at line 236 of file SoMachine.h.

#define DGL_LITTLE_ENDIAN   1

Definition at line 196 of file SoMachine.h.

#define DGL_NON_IEEE   3

Definition at line 200 of file SoMachine.h.

#define DGL_NTOH_DOUBLE (   t,
 
)    mem_ntoh_double(&t,&f)

Definition at line 273 of file SoMachine.h.

#define DGL_NTOH_FLOAT (   t,
 
)    mem_ntoh_float(&t,&f)

Definition at line 271 of file SoMachine.h.

#define DGL_NTOH_INT32   DGL_HTON_INT32

Definition at line 253 of file SoMachine.h.

#define DGL_NTOH_SHORT   DGL_HTON_SHORT

Definition at line 243 of file SoMachine.h.

#define DOUBLE (   p)    (*(double *)(p))

Definition at line 283 of file SoMachine.h.

#define FLOAT (   p)    (*(float *)(p))

Definition at line 282 of file SoMachine.h.

#define INT32 (   p)    (*(int32_t *)(p))

Definition at line 281 of file SoMachine.h.

#define M_SIZEOF (   x)    sizeof(x)

Definition at line 190 of file SoMachine.h.

#define MACHINE_FLOAT_FORMAT   DGL_NON_IEEE

Definition at line 161 of file SoMachine.h.

#define MACHINE_FLOAT_FORMAT   DGL_NON_IEEE

Definition at line 161 of file SoMachine.h.

#define MACHINE_WORD_FORMAT   DGL_LITTLE_ENDIAN

Definition at line 160 of file SoMachine.h.

#define MACHINE_WORD_FORMAT   DGL_LITTLE_ENDIAN

Definition at line 160 of file SoMachine.h.

#define SHORT (   p)    (*(short *)(p))

Definition at line 284 of file SoMachine.h.


Function Documentation

void mem_hton_double ( double *  t,
double *  f 
)
void mem_hton_float ( float *  t,
float *  f 
)
void mem_ntoh_double ( double *  t,
double *  f 
)
void mem_ntoh_float ( float *  t,
float *  f 
)