Utils.h File Reference
`#include "ZenLib/int128u.h"`

Go to the source code of this file.

## Namespaces

namespace | ZenLib

## Macros

#define | HEX__(n)
#define | B8__(x)
#define | B8(d)
#define | B16(dmsb, dlsb)
#define | B32(dmsb, db2, db3, dlsb)

## Functions

int8s | ZenLib::LittleEndian2int8s (const char *List)
int8u | ZenLib::LittleEndian2int8u (const char *List)
int16s | ZenLib::LittleEndian2int16s (const char *List)
int16u | ZenLib::LittleEndian2int16u (const char *List)
int32s | ZenLib::LittleEndian2int24s (const char *List)
int32u | ZenLib::LittleEndian2int24u (const char *List)
int32s | ZenLib::LittleEndian2int32s (const char *List)
int32u | ZenLib::LittleEndian2int32u (const char *List)
float32 | ZenLib::LittleEndian2float16 (const char *List)
float32 | ZenLib::LittleEndian2float32 (const char *List)
float64 | ZenLib::LittleEndian2float64 (const char *List)
float80 | ZenLib::LittleEndian2float80 (const char *List)
void | ZenLib::int8s2LittleEndian (char *List, int8s Value)
void | ZenLib::int8u2LittleEndian (char *List, int8u Value)
void | ZenLib::int16s2LittleEndian (char *List, int16s Value)
void | ZenLib::int16u2LittleEndian (char *List, int16u Value)
void | ZenLib::int24s2LittleEndian (char *List, int32s Value)
void | ZenLib::int24u2LittleEndian (char *List, int32u Value)
void | ZenLib::int32s2LittleEndian (char *List, int32s Value)
void | ZenLib::int32u2LittleEndian (char *List, int32u Value)
void | ZenLib::float162LittleEndian (char *List, float32 Value)
void | ZenLib::float322LittleEndian (char *List, float32 Value)
void | ZenLib::float642LittleEndian (char *List, float64 Value)
void | ZenLib::float802LittleEndian (char *List, float80 Value)
int8s | ZenLib::LittleEndian2int8s (const int8u *List)
int8u | ZenLib::LittleEndian2int8u (const int8u *List)
int16s | ZenLib::LittleEndian2int16s (const int8u *List)
int16u | ZenLib::LittleEndian2int16u (const int8u *List)
int32s | ZenLib::LittleEndian2int24s (const int8u *List)
int32u | ZenLib::LittleEndian2int24u (const int8u *List)
int32s | ZenLib::LittleEndian2int32s (const int8u *List)
int32u | ZenLib::LittleEndian2int32u (const int8u *List)
float32 | ZenLib::LittleEndian2float16 (const int8u *List)
float32 | ZenLib::LittleEndian2float32 (const int8u *List)
float64 | ZenLib::LittleEndian2float64 (const int8u *List)
float80 | ZenLib::LittleEndian2float80 (const int8u *List)
void | ZenLib::int8s2LittleEndian (int8u *List, int8s Value)
void | ZenLib::int8u2LittleEndian (int8u *List, int8u Value)
void | ZenLib::int16s2LittleEndian (int8u *List, int16s Value)
void | ZenLib::int16u2LittleEndian (int8u *List, int16u Value)
void | ZenLib::int24s2LittleEndian (int8u *List, int32s Value)
void | ZenLib::int24u2LittleEndian (int8u *List, int32u Value)
void | ZenLib::int32s2LittleEndian (int8u *List, int32s Value)
void | ZenLib::int32u2LittleEndian (int8u *List, int32u Value)
void | ZenLib::float162LittleEndian (int8u *List, float32 Value)
void | ZenLib::float322LittleEndian (int8u *List, float32 Value)
void | ZenLib::float642LittleEndian (int8u *List, float64 Value)
void | ZenLib::float802LittleEndian (int8u *List, float80 Value)
int8s | ZenLib::BigEndian2int8s (const char *List)
int8u | ZenLib::BigEndian2int8u (const char *List)
int16s | ZenLib::BigEndian2int16s (const char *List)
int16u | ZenLib::BigEndian2int16u (const char *List)
int32s | ZenLib::BigEndian2int24s (const char *List)
int32u | ZenLib::BigEndian2int24u (const char *List)
int32s | ZenLib::BigEndian2int32s (const char *List)
int32u | ZenLib::BigEndian2int32u (const char *List)
float32 | ZenLib::BigEndian2float16 (const char *List)
float32 | ZenLib::BigEndian2float32 (const char *List)
float64 | ZenLib::BigEndian2float64 (const char *List)
float80 | ZenLib::BigEndian2float80 (const char *List)
void | ZenLib::int8s2BigEndian (char *List, int8s Value)
void | ZenLib::int8u2BigEndian (char *List, int8u Value)
void | ZenLib::int16s2BigEndian (char *List, int16s Value)
void | ZenLib::int16u2BigEndian (char *List, int16u Value)
void | ZenLib::int24s2BigEndian (char *List, int32s Value)
void | ZenLib::int24u2BigEndian (char *List, int32u Value)
void | ZenLib::int32s2BigEndian (char *List, int32s Value)
void | ZenLib::int32u2BigEndian (char *List, int32u Value)
void | ZenLib::float162BigEndian (char *List, float32 Value)
void | ZenLib::float322BigEndian (char *List, float32 Value)
void | ZenLib::float642BigEndian (char *List, float64 Value)
void | ZenLib::float802BigEndian (char *List, float80 Value)
int8s | ZenLib::BigEndian2int8s (const int8u *List)
int8u | ZenLib::BigEndian2int8u (const int8u *List)
int16s | ZenLib::BigEndian2int16s (const int8u *List)
int16u | ZenLib::BigEndian2int16u (const int8u *List)
int32s | ZenLib::BigEndian2int32s (const int8u *List)
int32u | ZenLib::BigEndian2int24u (const int8u *List)
int32s | ZenLib::BigEndian2int24s (const int8u *List)
int32u | ZenLib::BigEndian2int32u (const int8u *List)
float32 | ZenLib::BigEndian2float16 (const int8u *List)
float32 | ZenLib::BigEndian2float32 (const int8u *List)
float64 | ZenLib::BigEndian2float64 (const int8u *List)
float80 | ZenLib::BigEndian2float80 (const int8u *List)
void | ZenLib::int8s2BigEndian (int8u *List, int8s Value)
void | ZenLib::int8u2BigEndian (int8u *List, int8u Value)
void | ZenLib::int16s2BigEndian (int8u *List, int16s Value)
void | ZenLib::int16u2BigEndian (int8u *List, int16u Value)
void | ZenLib::int24s2BigEndian (int8u *List, int32s Value)
void | ZenLib::int24u2BigEndian (int8u *List, int32u Value)
void | ZenLib::int32s2BigEndian (int8u *List, int32s Value)
void | ZenLib::int32u2BigEndian (int8u *List, int32u Value)
void | ZenLib::float162BigEndian (int8u *List, float32 Value)
void | ZenLib::float322BigEndian (int8u *List, float32 Value)
void | ZenLib::float642BigEndian (int8u *List, float64 Value)
void | ZenLib::float802BigEndian (int8u *List, float80 Value)
int64s | ZenLib::int32s_int64s (int32s High, int32u Low)
int64u | ZenLib::int32u_int64u (int32u High, int32u Low)
void | ZenLib::int32s_int64s (int64s &BigInt, int32s High, int32u Low)
void | ZenLib::int32u_int64u (int64s &BigInt, int32u High, int32u Low)
void | ZenLib::int64s_int32s (int64s BigInt, int32s &High, int32u &Low)
void | ZenLib::int64u_int32u (int64u BigInt, int32u &High, int32u &Low)
int32s | ZenLib::float32_int32s (float32 F, bool Rounded=true)
int64s | ZenLib::float32_int64s (float32 F, bool Rounded=true)
int32s | ZenLib::float64_int32s (float64 F, bool Rounded=true)
int64s | ZenLib::float64_int64s (float64 F, bool Rounded=true)
float32 | ZenLib::int64u_float32 (int64u v)
float64 | ZenLib::int64u_float64 (int64u v)
int64u | ZenLib::CC8 (const char *C)
int64u | ZenLib::CC7 (const char *C)
int64u | ZenLib::CC6 (const char *C)
int64u | ZenLib::CC5 (const char *C)
int32u | ZenLib::CC4 (const char *C)
int32u | ZenLib::CC3 (const char *C)
int16u | ZenLib::CC2 (const char *C)
int8u | ZenLib::CC1 (const char *C)
int64u | ZenLib::CC8 (const int8u *C)
int64u | ZenLib::CC7 (const int8u *C)
int64u | ZenLib::CC6 (const int8u *C)
int64u | ZenLib::CC5 (const int8u *C)
int32u | ZenLib::CC4 (const int8u *C)
int32u | ZenLib::CC3 (const int8u *C)
int16u | ZenLib::CC2 (const int8u *C)
int8u | ZenLib::CC1 (const int8u *C)

## Macro Definition Documentation

## B16

#define B16 | ( |  | dmsb,
|  |  | dlsb )

Value:
(((int16u)B8(dmsb)<<8) \
+ ((int16u)B8(dlsb)<<0))
B8
#define B8(d)
Definition Utils.h:292

## B32

#define B32 | ( |  | dmsb,
|  |  | db2,
|  |  | db3,
|  |  | dlsb )

Value:
(((int32u)B8(dmsb)<<24) \
+ ((int32u)B8( db2)<<16) \
+ ((int32u)B8( db3)<< 8) \
+ ((int32u)B8(dlsb)<< 0))

## B8

#define B8 | ( |  | d | ) |

Value:
((int8u)B8__(HEX__(d)))
HEX__
#define HEX__(n)
Definition Utils.h:279
B8__
#define B8__(x)
Definition Utils.h:282

## B8__

#define B8__ | ( |  | x | ) |

Value:
((x&0x0000000FLU)?0x01:0) \
+((x&0x000000F0LU)?0x02:0) \
+((x&0x00000F00LU)?0x04:0) \
+((x&0x0000F000LU)?0x08:0) \
+((x&0x000F0000LU)?0x10:0) \
+((x&0x00F00000LU)?0x20:0) \
+((x&0x0F000000LU)?0x40:0) \
+((x&0xF0000000LU)?0x80:0)

## HEX__

#define HEX__ | ( |  | n | ) |

Value:
0x##n##LU