NN_ENDIAN

NN_ENDIAN Macro

Syntax

#include <nn/config.h>

#define NN_ENDIAN NN_ENDIAN_VALUE_LITTLE

Arguments

None.

Description

Indicates the platform's endianness.

Takes the value defined for NN_ENDIAN_VALUE_BIG or NN_ENDIAN_VALUE_LITTLE depending on the endianness of the target platform. You can branch at compile time based on endianness by comparing these values using conditional branching of the pre-processor.

Revision History

2011/12/16
Initial version.

CONFIDENTIAL