BRL-CAD
#include "common.h"
#include <stdio.h>
#include <assert.h>
#include "bu/cv.h"
#include "bu/endian.h"
#include "bu/log.h"
Include dependency graph for htonf.c:

Go to the source code of this file.

Functions

void bu_cv_htonf (register unsigned char *out, register const unsigned char *in, size_t count)
 
void bu_cv_ntohf (register unsigned char *out, register const unsigned char *in, size_t count)
 

Detailed Description

convert floats to host/network format

Host to Network Floats + Network to Host Floats.

Definition in file htonf.c.

Function Documentation

void bu_cv_htonf ( register unsigned char *  out,
register const unsigned char *  in,
size_t  count 
)

Definition at line 34 of file htonf.c.

References BU_BIG_ENDIAN, bu_bomb(), bu_byteorder(), BU_LITTLE_ENDIAN, and SIZEOF_NETWORK_FLOAT.

Here is the call graph for this function:

void bu_cv_ntohf ( register unsigned char *  out,
register const unsigned char *  in,
size_t  count 
)

Definition at line 71 of file htonf.c.

References BU_BIG_ENDIAN, bu_bomb(), bu_byteorder(), BU_LITTLE_ENDIAN, and SIZEOF_NETWORK_FLOAT.

Here is the call graph for this function: