HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
half.h File Reference
#include "ImathExport.h"
#include "ImathNamespace.h"
#include "ImathPlatform.h"
#include <stdint.h>
#include <stdio.h>
+ Include dependency graph for half.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  imath_half_uif
 a type for both C-only programs and C++ to use the same utilities More...
 

Macros

#define HALF_DENORM_MIN   5.96046448e-08
 Smallest positive denormalized half. More...
 
#define HALF_NRM_MIN   6.10351562e-05
 Smallest positive normalized half. More...
 
#define HALF_MIN   6.10351562e-05f
 Smallest positive normalized half. More...
 
#define HALF_MAX   65504.0
 Largest positive half. More...
 
#define HALF_EPSILON   0.00097656
 Smallest positive e for which half(1.0 + e) != half(1.0) More...
 
#define HALF_MANT_DIG   11
 Number of digits in mantissa (significand + hidden leading 1) More...
 
#define HALF_DIG   3
 
#define HALF_DECIMAL_DIG   5
 
#define HALF_RADIX   2
 Base of the exponent. More...
 
#define HALF_DENORM_MIN_EXP   -13
 
#define HALF_MAX_EXP   16
 
#define HALF_DENORM_MIN_10_EXP   -4
 
#define HALF_MAX_10_EXP   4
 

Typedefs

typedef union imath_half_uif imath_half_uif_t
 a type for both C-only programs and C++ to use the same utilities More...
 
typedef uint16_t imath_half_bits_t
 a type for both C-only programs and C++ to use the same utilities More...
 
typedef imath_half_bits_t half
 if we're in a C-only context, alias the half bits type to half More...
 

Variables

IMATH_EXPORT const
imath_half_uif_t
imath_half_to_float_table
 

Macro Definition Documentation

#define HALF_DECIMAL_DIG   5

Number of base-10 digits that are necessary to uniquely represent all distinct values:

ceil(HALF_MANT_DIG * log10(2) + 1) => 4.31... -> 5

Definition at line 238 of file half.h.

#define HALF_DENORM_MIN   5.96046448e-08

Smallest positive denormalized half.

Definition at line 217 of file half.h.

#define HALF_DENORM_MIN_10_EXP   -4

Minimum positive integer such that 10 raised to that power is a normalized half

Definition at line 249 of file half.h.

#define HALF_DENORM_MIN_EXP   -13

Minimum negative integer such that HALF_RADIX raised to the power of one less than that integer is a normalized half

Definition at line 243 of file half.h.

#define HALF_DIG   3

Number of base 10 digits that can be represented without change:

floor( (HALF_MANT_DIG - 1) * log10(2) ) => 3.01... -> 3

Definition at line 233 of file half.h.

#define HALF_EPSILON   0.00097656

Smallest positive e for which half(1.0 + e) != half(1.0)

Definition at line 225 of file half.h.

#define HALF_MANT_DIG   11

Number of digits in mantissa (significand + hidden leading 1)

Definition at line 229 of file half.h.

#define HALF_MAX   65504.0

Largest positive half.

Definition at line 223 of file half.h.

#define HALF_MAX_10_EXP   4

Maximum positive integer such that 10 raised to that power is a normalized half

Definition at line 252 of file half.h.

#define HALF_MAX_EXP   16

Maximum positive integer such that HALF_RADIX raised to the power of one less than that integer is a normalized half

Definition at line 246 of file half.h.

#define HALF_MIN   6.10351562e-05f

Smallest positive normalized half.

Definition at line 221 of file half.h.

#define HALF_NRM_MIN   6.10351562e-05

Smallest positive normalized half.

Definition at line 219 of file half.h.

#define HALF_RADIX   2

Base of the exponent.

Definition at line 240 of file half.h.

Typedef Documentation

if we're in a C-only context, alias the half bits type to half

Definition at line 266 of file half.h.

typedef uint16_t imath_half_bits_t

a type for both C-only programs and C++ to use the same utilities

Definition at line 262 of file half.h.

a type for both C-only programs and C++ to use the same utilities

Variable Documentation

IMATH_EXPORT const imath_half_uif_t* imath_half_to_float_table