SYS/SYS_Types.h File Reference

#include <sys/types.h>

Go to the source code of this file.

Classes

union  SYS_FPRealUnionT< fpreal32 >
union  SYS_FPRealUnionT< fpreal64 >

Defines

#define SYS_PRI64_PREFIX   "ll"
#define SYS_PRId64   SYS_PRI64_PREFIX "d"
#define SYS_PRIu64   SYS_PRI64_PREFIX "u"
#define SYS_PRIx64   SYS_PRI64_PREFIX "x"
#define SYS_PRIX64   SYS_PRI64_PREFIX "X"
#define SYS_INT64_C(x)   x ## LL
#define SYS_UINT64_C(x)   x ## ULL
#define SYS_INT8_MIN   (-128)
#define SYS_INT8_MAX   (127)
#define SYS_UINT8_MAX   (255)
#define SYS_INT16_MIN   (-32767-1)
#define SYS_INT16_MAX   (32767)
#define SYS_UINT16_MAX   (65535)
#define SYS_INT32_MIN   (-2147483647-1)
#define SYS_INT32_MAX   (2147483647)
#define SYS_UINT32_MAX   (4294967295U)
#define SYS_INT64_MIN   (-SYS_INT64_C(9223372036854775807)-1)
#define SYS_INT64_MAX   (SYS_INT64_C(9223372036854775807))
#define SYS_UINT64_MAX   (SYS_UINT64_C(18446744073709551615))
#define SYS_DBL_DIG   17
#define SYS_FLT_DIG   9
#define SYS_FTOLERANCE   ((fpreal32)0.00001)
#define SYS_FTOLERANCE_D   (fpreal64(SYS_FTOLERANCE))
#define SYS_FP32_EPSILON   FLT_EPSILON
#define SYS_FP64_EPSILON   DBL_EPSILON
#define SYS_FP32_MIN   ((fpreal32)2e-45)
#define SYS_FP64_MIN   ((fpreal64)2e-324)
#define SYS_FP32_MAX   ((fpreal32)FLT_MAX)
#define SYS_FP64_MAX   ((fpreal64)DBL_MAX)
#define SYS_SIZEOF_FPREAL   8
#define SYS_FPREAL_DIG   SYS_DBL_DIG
#define SYS_FTOLERANCE_R   (fpreal(SYS_FTOLERANCE))
#define SYS_FPEPSILON   SYS_FP64_EPSILON
#define SYS_FPREAL_MIN   SYS_FP64_MIN
#define SYS_FPREAL_MAX   SYS_FP64_MAX
#define SYS_SCANF_FPREAL   "lg"
#define SYS_DIG_FMT_INTERNAL(PREC)   "%." #PREC "g"
#define SYS_DIG_FMT(PREC)   SYS_DIG_FMT_INTERNAL(PREC)
#define SYS_FLT_DIG_FMT   SYS_DIG_FMT(SYS_FLT_DIG)
#define SYS_DBL_DIG_FMT   SYS_DIG_FMT(SYS_DBL_DIG)
#define SYS_FPREAL_DIG_FMT   SYS_DIG_FMT(SYS_FPREAL_DIG)
#define CONST_INT8(x)   ((int8)x)
#define CONST_UINT8(x)   ((uint8)x)
#define CONST_INT16(x)   ((int16)x)
#define CONST_UINT16(x)   ((uint16)x)
#define CONST_INT32(x)   ((int32)x)
#define CONST_UINT32(x)   ((uint32)x)
#define CONST_INT64(x)   (x##LL)
#define CONST_UINT64(x)   (x##LL)
#define CONST_FPREAL16(c)   ((fpreal16)c)
#define CONST_FPREAL32(c)   ((fpreal32)c)
#define CONST_FPREAL64(c)   ((fpreal64)c)
#define CONST_FPREAL(c)   ((fpreal)c)
#define SYS_DEPRECATED
 Mark function as deprecated and may be removed in the future.
#define SYS_FORCE_INLINE   inline
#define SYS_NO_INLINE
 Mark function as NOT to be inlined.
#define SYS_PRINTF_CHECK_ATTRIBUTE(string_index, first_to_check)
#define SYS_PACKED_STRUCT_HINT_BEGIN(name, n)   struct name
#define SYS_PACKED_STRUCT_HINT_END

Typedefs

typedef signed char int8
typedef unsigned char uint8
typedef short int16
typedef unsigned short uint16
typedef int int32
typedef unsigned int uint32
typedef unsigned char uchar
typedef unsigned int uint
typedef long long int64
typedef unsigned long long uint64
typedef int64 exint
typedef float fpreal32
typedef double fpreal64
typedef unsigned short fpreal16
typedef double fpreal
typedef union SYS_FPRealUnionT
< fpreal
SYS_FPRealUnionR
typedef union SYS_FPRealUnionT
< fpreal32
SYS_FPRealUnionF
typedef union SYS_FPRealUnionT
< fpreal64
SYS_FPRealUnionD


Define Documentation

#define CONST_FPREAL ( c   )     ((fpreal)c)

Definition at line 237 of file SYS_Types.h.

#define CONST_FPREAL16 ( c   )     ((fpreal16)c)

Definition at line 234 of file SYS_Types.h.

#define CONST_FPREAL32 ( c   )     ((fpreal32)c)

Definition at line 235 of file SYS_Types.h.

#define CONST_FPREAL64 ( c   )     ((fpreal64)c)

Definition at line 236 of file SYS_Types.h.

#define CONST_INT16 ( x   )     ((int16)x)

Definition at line 221 of file SYS_Types.h.

#define CONST_INT32 ( x   )     ((int32)x)

Definition at line 223 of file SYS_Types.h.

#define CONST_INT64 ( x   )     (x##LL)

Definition at line 230 of file SYS_Types.h.

#define CONST_INT8 ( x   )     ((int8)x)

Definition at line 219 of file SYS_Types.h.

#define CONST_UINT16 ( x   )     ((uint16)x)

Definition at line 222 of file SYS_Types.h.

#define CONST_UINT32 ( x   )     ((uint32)x)

Definition at line 224 of file SYS_Types.h.

#define CONST_UINT64 ( x   )     (x##LL)

Definition at line 231 of file SYS_Types.h.

#define CONST_UINT8 ( x   )     ((uint8)x)

Definition at line 220 of file SYS_Types.h.

#define SYS_DBL_DIG   17

Definition at line 128 of file SYS_Types.h.

#define SYS_DBL_DIG_FMT   SYS_DIG_FMT(SYS_DBL_DIG)

Definition at line 207 of file SYS_Types.h.

#define SYS_DEPRECATED

Mark function as deprecated and may be removed in the future.

Function modifiers

Note that these qualifiers can only appear in function declarations.

Definition at line 290 of file SYS_Types.h.

#define SYS_DIG_FMT ( PREC   )     SYS_DIG_FMT_INTERNAL(PREC)

Definition at line 203 of file SYS_Types.h.

#define SYS_DIG_FMT_INTERNAL ( PREC   )     "%." #PREC "g"

Definition at line 202 of file SYS_Types.h.

#define SYS_FLT_DIG   9

Examples:
standalone/geo2voxel.C.

Definition at line 129 of file SYS_Types.h.

#define SYS_FLT_DIG_FMT   SYS_DIG_FMT(SYS_FLT_DIG)

Definition at line 205 of file SYS_Types.h.

#define SYS_FORCE_INLINE   inline

Mark function to be inlined. If this is done, taking the address of such a function is not allowed.

Definition at line 300 of file SYS_Types.h.

#define SYS_FP32_EPSILON   FLT_EPSILON

Definition at line 155 of file SYS_Types.h.

#define SYS_FP32_MAX   ((fpreal32)FLT_MAX)

Definition at line 160 of file SYS_Types.h.

#define SYS_FP32_MIN   ((fpreal32)2e-45)

Definition at line 158 of file SYS_Types.h.

#define SYS_FP64_EPSILON   DBL_EPSILON

Definition at line 156 of file SYS_Types.h.

#define SYS_FP64_MAX   ((fpreal64)DBL_MAX)

Definition at line 161 of file SYS_Types.h.

#define SYS_FP64_MIN   ((fpreal64)2e-324)

Definition at line 159 of file SYS_Types.h.

#define SYS_FPEPSILON   SYS_FP64_EPSILON

Definition at line 194 of file SYS_Types.h.

#define SYS_FPREAL_DIG   SYS_DBL_DIG

Definition at line 192 of file SYS_Types.h.

#define SYS_FPREAL_DIG_FMT   SYS_DIG_FMT(SYS_FPREAL_DIG)

Definition at line 209 of file SYS_Types.h.

#define SYS_FPREAL_MAX   SYS_FP64_MAX

Definition at line 196 of file SYS_Types.h.

#define SYS_FPREAL_MIN   SYS_FP64_MIN

Definition at line 195 of file SYS_Types.h.

#define SYS_FTOLERANCE   ((fpreal32)0.00001)

Definition at line 150 of file SYS_Types.h.

#define SYS_FTOLERANCE_D   (fpreal64(SYS_FTOLERANCE))

Definition at line 151 of file SYS_Types.h.

#define SYS_FTOLERANCE_R   (fpreal(SYS_FTOLERANCE))

Definition at line 193 of file SYS_Types.h.

#define SYS_INT16_MAX   (32767)

Definition at line 107 of file SYS_Types.h.

#define SYS_INT16_MIN   (-32767-1)

Definition at line 106 of file SYS_Types.h.

#define SYS_INT32_MAX   (2147483647)

Definition at line 112 of file SYS_Types.h.

#define SYS_INT32_MIN   (-2147483647-1)

Definition at line 111 of file SYS_Types.h.

#define SYS_INT64_C ( x   )     x ## LL

Definition at line 96 of file SYS_Types.h.

#define SYS_INT64_MAX   (SYS_INT64_C(9223372036854775807))

Definition at line 117 of file SYS_Types.h.

#define SYS_INT64_MIN   (-SYS_INT64_C(9223372036854775807)-1)

Definition at line 116 of file SYS_Types.h.

#define SYS_INT8_MAX   (127)

Definition at line 102 of file SYS_Types.h.

#define SYS_INT8_MIN   (-128)

Definition at line 101 of file SYS_Types.h.

#define SYS_NO_INLINE

Mark function as NOT to be inlined.

Definition at line 309 of file SYS_Types.h.

#define SYS_PACKED_STRUCT_HINT_BEGIN ( name,
n   )     struct name

Struct modifiers

Note that these qualifiers can only appear in struct declarations. Compiler hint to pack the struct with the specified alignment. Note this is not supported on some platforms and is only a hint.

Definition at line 343 of file SYS_Types.h.

#define SYS_PACKED_STRUCT_HINT_END

Struct modifiers

Note that these qualifiers can only appear in struct declarations. Compiler hint to pack the struct with the specified alignment. Note this is not supported on some platforms and is only a hint.

Definition at line 344 of file SYS_Types.h.

#define SYS_PRI64_PREFIX   "ll"

Definition at line 51 of file SYS_Types.h.

#define SYS_PRId64   SYS_PRI64_PREFIX "d"

Examples:
GEO/GEO_VoxelTranslator.C, and standalone/geo2voxel.C.

Definition at line 55 of file SYS_Types.h.

#define SYS_PRINTF_CHECK_ATTRIBUTE ( string_index,
first_to_check   ) 

Mark a function as doing printf-style formatting, and generate warnings if the formatting string doesn't match the types. string_index is the parameter index of the format string, and first_to_check is the index of the "..." parameter. These indices are both base 1, and "this" counts as the first parameter if it's a method.

Definition at line 321 of file SYS_Types.h.

#define SYS_PRIu64   SYS_PRI64_PREFIX "u"

Definition at line 56 of file SYS_Types.h.

#define SYS_PRIX64   SYS_PRI64_PREFIX "X"

Definition at line 58 of file SYS_Types.h.

#define SYS_PRIx64   SYS_PRI64_PREFIX "x"

Definition at line 57 of file SYS_Types.h.

#define SYS_SCANF_FPREAL   "lg"

Definition at line 199 of file SYS_Types.h.

#define SYS_SIZEOF_FPREAL   8

Definition at line 190 of file SYS_Types.h.

#define SYS_UINT16_MAX   (65535)

Definition at line 108 of file SYS_Types.h.

#define SYS_UINT32_MAX   (4294967295U)

Definition at line 113 of file SYS_Types.h.

#define SYS_UINT64_C ( x   )     x ## ULL

Definition at line 97 of file SYS_Types.h.

#define SYS_UINT64_MAX   (SYS_UINT64_C(18446744073709551615))

Definition at line 118 of file SYS_Types.h.

#define SYS_UINT8_MAX   (255)

Definition at line 103 of file SYS_Types.h.


Typedef Documentation

typedef int64 exint

Examples:
tetprim/GT_PrimTetra.C, and tetprim/GU_PrimTetra.C.

Definition at line 86 of file SYS_Types.h.

typedef double fpreal

Examples:
CHOP/CHOP_Blend.C, CHOP/CHOP_Spring.C, CHOP/CHOP_Spring.h, CHOP/CHOP_Stair.C, CHOP/CHOP_Stair.h, COP2/COP2_FullImageFilter.h, COP2/COP2_PixelAdd.C, COP2/COP2_PixelAdd.h, COP2/COP2_SampleFilter.h, COP2/COP2_SampleGenerator.h, CVEX/cvexsample.C, CVEX/simple.C, DOP/DOP_GroupAndApply.C, DOP/DOP_GroupAndApply.h, euclid/SOP_Euclid.C, euclid/SOP_Euclid.h, expr/channel.C, field3d/ROP_Field3D.C, field3d/ROP_Field3D.h, OBJ/OBJ_Shake.C, OBJ/OBJ_Shake.h, POP/POP_CircleForce.C, POP/POP_CircleForce.h, POP/POP_LocalForce.C, POP/POP_LocalForce.h, POP/POP_RadialBirth.C, POP/POP_RadialBirth.h, POP/POP_SpotLight.C, POP/POP_SpotLight.h, ROP/ROP_DopField.C, ROP/ROP_DopField.h, ROP/ROP_Dumper.C, ROP/ROP_Dumper.h, SIM/SIM_ForceOrbit.C, SIM/SIM_ForceOrbit.h, SIM/SIM_SolverHair.C, SIM/SNOW_Solver.C, SIM/SNOW_Solver.h, SOP/MSS_CustomBrushState.C, SOP/SOP_BrushHairLen.C, SOP/SOP_BrushHairLen.h, SOP/SOP_CopRaster.C, SOP/SOP_CopRaster.h, SOP/SOP_CPPWave.C, SOP/SOP_CustomBrush.C, SOP/SOP_CustomBrush.h, SOP/SOP_DetailAttrib.C, SOP/SOP_DetailAttrib.h, SOP/SOP_Flatten.C, SOP/SOP_Flatten.h, SOP/SOP_GroupRename.C, SOP/SOP_GroupRename.h, SOP/SOP_HDKObject.C, SOP/SOP_HDKObject.h, SOP/SOP_IKSample.C, SOP/SOP_IKSample.h, SOP/SOP_NURBS.C, SOP/SOP_NURBS.h, SOP/SOP_PointWave.C, SOP/SOP_PointWave.h, SOP/SOP_PrimVOP.C, SOP/SOP_PrimVOP.h, SOP/SOP_SParticle.C, SOP/SOP_SParticle.h, SOP/SOP_Star.C, SOP/SOP_Star.h, SOP/SOP_Surface.C, SOP/SOP_Surface.h, SOP/SOP_TimeCompare.C, SOP/SOP_TimeCompare.h, standalone/i3dsphere.C, tetprim/GEO_PrimTetra.C, tetprim/GEO_PrimTetra.h, tetprim/SOP_Tetra.C, tetprim/SOP_Tetra.h, VOP/VOP_CustomContext.C, VRAY/VRAY_DemoBox.C, VRAY/VRAY_DemoFile.C, VRAY/VRAY_DemoFile.h, VRAY/VRAY_DemoMountain.C, VRAY/VRAY_DemoMountain.h, VRAY/VRAY_DemoSprite.C, VRAY/VRAY_DemoSprite.h, VRAY/VRAY_DemoStamp.C, and VRAY/VRAY_DemoStamp.h.

Definition at line 187 of file SYS_Types.h.

typedef unsigned short fpreal16

Definition at line 145 of file SYS_Types.h.

typedef float fpreal32

typedef double fpreal64

Examples:
CHOP/CHOP_Spring.C, and SOP/SOP_IKSample.C.

Definition at line 139 of file SYS_Types.h.

typedef short int16

Definition at line 29 of file SYS_Types.h.

typedef int int32

typedef long long int64

typedef signed char int8

Definition at line 27 of file SYS_Types.h.

typedef union SYS_FPRealUnionT< fpreal64 > SYS_FPRealUnionD

Definition at line 275 of file SYS_Types.h.

typedef union SYS_FPRealUnionT< fpreal32 > SYS_FPRealUnionF

Definition at line 274 of file SYS_Types.h.

typedef union SYS_FPRealUnionT< fpreal > SYS_FPRealUnionR

Definition at line 273 of file SYS_Types.h.

typedef unsigned char uchar

Definition at line 34 of file SYS_Types.h.

typedef unsigned int uint

typedef unsigned short uint16

Definition at line 30 of file SYS_Types.h.

typedef unsigned int uint32

Definition at line 32 of file SYS_Types.h.

typedef unsigned long long uint64

Definition at line 78 of file SYS_Types.h.

typedef unsigned char uint8

Definition at line 28 of file SYS_Types.h.


Generated on Thu Jan 31 00:29:14 2013 for HDK by  doxygen 1.5.9