BRL-CAD
Collaboration diagram for Endian Support:

Files

file  endian.c
 

Enumerations

enum  bu_endian_t { BU_LITTLE_ENDIAN = 1234, BU_BIG_ENDIAN = 4321, BU_PDP_ENDIAN = 3412 }
 

Functions

bu_endian_t bu_byteorder (void)
 

Detailed Description

Enumeration Type Documentation

Enumerator
BU_LITTLE_ENDIAN 
BU_BIG_ENDIAN 
BU_PDP_ENDIAN 

Definition at line 41 of file endian.h.

Function Documentation

bu_endian_t bu_byteorder ( void  )

returns the platform byte ordering (e.g., big-/little-endian)

Definition at line 27 of file endian.c.

References BU_BIG_ENDIAN, BU_LITTLE_ENDIAN, BU_PDP_ENDIAN, LIKELY, and UNLIKELY.

Referenced by bu_cv_htond(), bu_cv_htonf(), bu_cv_ntohd(), bu_cv_ntohf(), and bu_cv_optimize().