Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
lib.cpp File Reference
#include "precompiled.h"
#include "lib/lib.h"
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "lib/app_hooks.h"
#include "lib/sysdep/sysdep.h"
Include dependency graph for lib.cpp:

Functions

u32 u64_hi (u64 x)
 
u32 u64_lo (u64 x)
 return upper 32-bits More...
 
u16 u32_hi (u32 x)
 return lower 32-bits More...
 
u16 u32_lo (u32 x)
 return upper 16-bits More...
 
u64 u64_from_u32 (u32 hi, u32 lo)
 return lower 16-bits More...
 
u32 u32_from_u16 (u16 hi, u16 lo)
 assemble u64 from u32 More...
 
u8 u8_from_double (double in)
 convert double to u8; verifies number is in range. More...
 
u16 u16_from_double (double in)
 convert double to u16; verifies number is in range. More...
 

Function Documentation

◆ u16_from_double()

u16 u16_from_double ( double  in)

convert double to u16; verifies number is in range.

◆ u32_from_u16()

u32 u32_from_u16 ( u16  hi,
u16  lo 
)

assemble u64 from u32

◆ u32_hi()

u16 u32_hi ( u32  x)

return lower 32-bits

◆ u32_lo()

u16 u32_lo ( u32  x)

return upper 16-bits

◆ u64_from_u32()

u64 u64_from_u32 ( u32  hi,
u32  lo 
)

return lower 16-bits

◆ u64_hi()

u32 u64_hi ( u64  x)

◆ u64_lo()

u32 u64_lo ( u64  x)

return upper 32-bits

◆ u8_from_double()

u8 u8_from_double ( double  in)

convert double to u8; verifies number is in range.