Openholo  v1.1
Open Source Digital Holographic Library
tmwtypes.h File Reference
#include <limits.h>
#include <stddef.h>
Include dependency graph for tmwtypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  creal32_T
 
struct  creal64_T
 
struct  creal_T
 

Macros

#define tmwtypes_h
 
#define __TMWTYPES__
 
#define LOGICAL_IS_A_TYPE
 
#define SPARSE_GENERALIZATION
 
#define FLT_MANT_DIG   24
 
#define DBL_MANT_DIG   53
 
#define TMW_BITS_PER_INT   -1
 
#define TMW_BITS_PER_LONG   -1
 
#define TMW_BITS_PER_SHRT   -1
 
#define TMW_BITS_PER_SCHAR   -1
 
#define TMW_CHAR_SIGNED   1
 
#define REAL32_T   float
 
#define REAL64_T   double
 
#define FMT_SIZE_T   "l"
 
#define FMT_PTRDIFF_T   "l"
 
#define REAL_T   real64_T
 
#define TIME_T   real_T
 
#define BOOLEAN_T   unsigned int
 
#define CHARACTER_T   char
 
#define INTEGER_T   int
 
#define UINTEGER_T   unsigned
 
#define BYTE_T   unsigned char
 
#define CREAL32_T   creal32_T
 
#define CREAL64_T   creal64_T
 
#define CREAL_T   creal_T
 
#define MAX_int8_T   ((int8_T)(127)) /* 127 */
 
#define MIN_int8_T   ((int8_T)(-128)) /* -128 */
 
#define MAX_uint8_T   ((uint8_T)(255)) /* 255 */
 
#define MIN_uint8_T   ((uint8_T)(0))
 
#define MAX_int16_T   ((int16_T)(32767)) /* 32767 */
 
#define MIN_int16_T   ((int16_T)(-32768)) /* -32768 */
 
#define MAX_uint16_T   ((uint16_T)(65535)) /* 65535 */
 
#define MIN_uint16_T   ((uint16_T)(0))
 
#define MAX_int32_T   ((int32_T)(2147483647)) /* 2147483647 */
 
#define MIN_int32_T   ((int32_T)(-2147483647-1)) /* -2147483648 */
 
#define MAX_uint32_T   ((uint32_T)(0xFFFFFFFFU)) /* 4294967295 */
 
#define MIN_uint32_T   ((uint32_T)(0))
 
#define uint64_to_double(u)   ((double)(u))
 
#define double_to_uint64(d)
 
#define _bool_T
 
#define false   (0)
 
#define true   (1)
 
#define TMW_NAME_LENGTH_MAX   64
 
#define SLSIZE_SLINDEX
 
#define SLIndexType   size_t
 
#define INVALID_SIZET_VALUE   (std::numeric_limits<SLIndexType>::max())
 
#define MAX_VALID_SIZET_VALUE   (std::numeric_limits<SLIndexType>::max() -1)
 
#define MWSIZE_MAX   2147483647UL
 
#define MWINDEX_MAX   2147483647UL
 
#define MWSINDEX_MAX   2147483647L
 
#define MWSINDEX_MIN   -2147483647L
 
#define MWSIZE_MIN   0UL
 
#define MWINDEX_MIN   0UL
 

Typedefs

typedef unsigned char uchar_T
 
typedef unsigned short ushort_T
 
typedef unsigned long ulong_T
 
typedef REAL32_T real32_T
 
typedef REAL64_T real64_T
 
typedef REAL_T real_T
 
typedef TIME_T time_T
 
typedef BOOLEAN_T boolean_T
 
typedef CHARACTER_T char_T
 
typedef INTEGER_T int_T
 
typedef UINTEGER_T uint_T
 
typedef BYTE_T byte_T
 
typedef boolean_T bool
 
typedef size_t mwSize
 
typedef size_t mwIndex
 
typedef ptrdiff_t mwSignedIndex
 
typedef int SLIndex
 
typedef int SLSize
 
typedef UINT16_T CHAR16_T
 

Macro Definition Documentation

◆ __TMWTYPES__

#define __TMWTYPES__

Definition at line 16 of file tmwtypes.h.

◆ _bool_T

#define _bool_T

Definition at line 795 of file tmwtypes.h.

◆ BOOLEAN_T

#define BOOLEAN_T   unsigned int

Definition at line 553 of file tmwtypes.h.

◆ BYTE_T

#define BYTE_T   unsigned char

Definition at line 578 of file tmwtypes.h.

◆ CHARACTER_T

#define CHARACTER_T   char

Definition at line 560 of file tmwtypes.h.

◆ CREAL32_T

#define CREAL32_T   creal32_T

Definition at line 593 of file tmwtypes.h.

◆ CREAL64_T

#define CREAL64_T   creal64_T

Definition at line 602 of file tmwtypes.h.

◆ CREAL_T

#define CREAL_T   creal_T

Definition at line 611 of file tmwtypes.h.

◆ DBL_MANT_DIG

#define DBL_MANT_DIG   53

Definition at line 66 of file tmwtypes.h.

◆ double_to_uint64

#define double_to_uint64 (   d)
Value:
( ((d) >= 18446744073709551616.0) ? \
(unsigned long long) 0xffffffffffffffffULL : \
((d) >= 0) ? (unsigned long long)(d) : (unsigned long long) 0 )

Definition at line 786 of file tmwtypes.h.

◆ false

#define false   (0)

Definition at line 800 of file tmwtypes.h.

◆ FLT_MANT_DIG

#define FLT_MANT_DIG   24

Definition at line 63 of file tmwtypes.h.

◆ FMT_PTRDIFF_T

#define FMT_PTRDIFF_T   "l"

Definition at line 508 of file tmwtypes.h.

◆ FMT_SIZE_T

#define FMT_SIZE_T   "l"

Definition at line 494 of file tmwtypes.h.

◆ INTEGER_T

#define INTEGER_T   int

Definition at line 566 of file tmwtypes.h.

◆ INVALID_SIZET_VALUE

#define INVALID_SIZET_VALUE   (std::numeric_limits<SLIndexType>::max())

Definition at line 853 of file tmwtypes.h.

◆ LOGICAL_IS_A_TYPE

#define LOGICAL_IS_A_TYPE

Definition at line 48 of file tmwtypes.h.

◆ MAX_int16_T

#define MAX_int16_T   ((int16_T)(32767)) /* 32767 */

Definition at line 700 of file tmwtypes.h.

◆ MAX_int32_T

#define MAX_int32_T   ((int32_T)(2147483647)) /* 2147483647 */

Definition at line 705 of file tmwtypes.h.

◆ MAX_int8_T

#define MAX_int8_T   ((int8_T)(127)) /* 127 */

Definition at line 695 of file tmwtypes.h.

◆ MAX_uint16_T

#define MAX_uint16_T   ((uint16_T)(65535)) /* 65535 */

Definition at line 702 of file tmwtypes.h.

◆ MAX_uint32_T

#define MAX_uint32_T   ((uint32_T)(0xFFFFFFFFU)) /* 4294967295 */

Definition at line 707 of file tmwtypes.h.

◆ MAX_uint8_T

#define MAX_uint8_T   ((uint8_T)(255)) /* 255 */

Definition at line 697 of file tmwtypes.h.

◆ MAX_VALID_SIZET_VALUE

#define MAX_VALID_SIZET_VALUE   (std::numeric_limits<SLIndexType>::max() -1)

Definition at line 854 of file tmwtypes.h.

◆ MIN_int16_T

#define MIN_int16_T   ((int16_T)(-32768)) /* -32768 */

Definition at line 701 of file tmwtypes.h.

◆ MIN_int32_T

#define MIN_int32_T   ((int32_T)(-2147483647-1)) /* -2147483648 */

Definition at line 706 of file tmwtypes.h.

◆ MIN_int8_T

#define MIN_int8_T   ((int8_T)(-128)) /* -128 */

Definition at line 696 of file tmwtypes.h.

◆ MIN_uint16_T

#define MIN_uint16_T   ((uint16_T)(0))

Definition at line 703 of file tmwtypes.h.

◆ MIN_uint32_T

#define MIN_uint32_T   ((uint32_T)(0))

Definition at line 708 of file tmwtypes.h.

◆ MIN_uint8_T

#define MIN_uint8_T   ((uint8_T)(0))

Definition at line 698 of file tmwtypes.h.

◆ MWINDEX_MAX

#define MWINDEX_MAX   2147483647UL

Definition at line 865 of file tmwtypes.h.

◆ MWINDEX_MIN

#define MWINDEX_MIN   0UL

Definition at line 870 of file tmwtypes.h.

◆ MWSINDEX_MAX

#define MWSINDEX_MAX   2147483647L

Definition at line 866 of file tmwtypes.h.

◆ MWSINDEX_MIN

#define MWSINDEX_MIN   -2147483647L

Definition at line 867 of file tmwtypes.h.

◆ MWSIZE_MAX

#define MWSIZE_MAX   2147483647UL

Definition at line 864 of file tmwtypes.h.

◆ MWSIZE_MIN

#define MWSIZE_MIN   0UL

Definition at line 869 of file tmwtypes.h.

◆ REAL32_T

#define REAL32_T   float

Definition at line 365 of file tmwtypes.h.

◆ REAL64_T

#define REAL64_T   double

Definition at line 379 of file tmwtypes.h.

◆ REAL_T

#define REAL_T   real64_T

Definition at line 527 of file tmwtypes.h.

◆ SLIndexType

#define SLIndexType   size_t

Definition at line 852 of file tmwtypes.h.

◆ SLSIZE_SLINDEX

#define SLSIZE_SLINDEX

Definition at line 841 of file tmwtypes.h.

◆ SPARSE_GENERALIZATION

#define SPARSE_GENERALIZATION

Definition at line 49 of file tmwtypes.h.

◆ TIME_T

#define TIME_T   real_T

Definition at line 540 of file tmwtypes.h.

◆ TMW_BITS_PER_INT

#define TMW_BITS_PER_INT   -1

Definition at line 142 of file tmwtypes.h.

◆ TMW_BITS_PER_LONG

#define TMW_BITS_PER_LONG   -1

Definition at line 154 of file tmwtypes.h.

◆ TMW_BITS_PER_SCHAR

#define TMW_BITS_PER_SCHAR   -1

Definition at line 178 of file tmwtypes.h.

◆ TMW_BITS_PER_SHRT

#define TMW_BITS_PER_SHRT   -1

Definition at line 166 of file tmwtypes.h.

◆ TMW_CHAR_SIGNED

#define TMW_CHAR_SIGNED   1

Definition at line 184 of file tmwtypes.h.

◆ TMW_NAME_LENGTH_MAX

#define TMW_NAME_LENGTH_MAX   64

Definition at line 822 of file tmwtypes.h.

◆ tmwtypes_h

#define tmwtypes_h

Definition at line 13 of file tmwtypes.h.

◆ true

#define true   (1)

Definition at line 803 of file tmwtypes.h.

◆ uint64_to_double

#define uint64_to_double (   u)    ((double)(u))

Definition at line 782 of file tmwtypes.h.

◆ UINTEGER_T

#define UINTEGER_T   unsigned

Definition at line 572 of file tmwtypes.h.

Typedef Documentation

◆ bool

typedef boolean_T bool

Definition at line 797 of file tmwtypes.h.

◆ boolean_T

Definition at line 556 of file tmwtypes.h.

◆ byte_T

typedef BYTE_T byte_T

Definition at line 580 of file tmwtypes.h.

◆ CHAR16_T

typedef UINT16_T CHAR16_T

UTF-16 character type

Definition at line 881 of file tmwtypes.h.

◆ char_T

Definition at line 562 of file tmwtypes.h.

◆ int_T

typedef INTEGER_T int_T

Definition at line 568 of file tmwtypes.h.

◆ mwIndex

typedef size_t mwIndex

Definition at line 835 of file tmwtypes.h.

◆ mwSignedIndex

typedef ptrdiff_t mwSignedIndex

Definition at line 836 of file tmwtypes.h.

◆ mwSize

typedef size_t mwSize

Definition at line 834 of file tmwtypes.h.

◆ real32_T

typedef REAL32_T real32_T

Definition at line 372 of file tmwtypes.h.

◆ real64_T

typedef REAL64_T real64_T

Definition at line 386 of file tmwtypes.h.

◆ real_T

typedef REAL_T real_T

Definition at line 535 of file tmwtypes.h.

◆ SLIndex

typedef int SLIndex

Definition at line 846 of file tmwtypes.h.

◆ SLSize

typedef int SLSize

Definition at line 847 of file tmwtypes.h.

◆ time_T

typedef TIME_T time_T

Definition at line 544 of file tmwtypes.h.

◆ uchar_T

typedef unsigned char uchar_T

Definition at line 89 of file tmwtypes.h.

◆ uint_T

typedef UINTEGER_T uint_T

Definition at line 574 of file tmwtypes.h.

◆ ulong_T

typedef unsigned long ulong_T

Definition at line 91 of file tmwtypes.h.

◆ ushort_T

typedef unsigned short ushort_T

Definition at line 90 of file tmwtypes.h.