NVIDIA DRIVE OS Linux SDK API Reference

5.1.12.4 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
NvData32Rec Union Reference

Detailed Description

Union that can be used to view a 32-bit word as your choice of a 32-bit unsigned integer, a 32-bit signed integer, or an IEEE single-precision float.

Here is an example of how you might use it to extract the (integer) bitwise representation of a floating-point number: NvData32 data; data.f = 1.0f; printf("%x", data.u);

Definition at line 231 of file nvcommon.h.

Data Fields

NvU32 u
 
NvS32 i
 
NvF32 f
 

Field Documentation

NvF32 NvData32Rec::f

Definition at line 235 of file nvcommon.h.

NvS32 NvData32Rec::i

Definition at line 234 of file nvcommon.h.

NvU32 NvData32Rec::u

Definition at line 233 of file nvcommon.h.


The documentation for this union was generated from the following file: