VSF Documented
stddef.h File Reference

Go to the source code of this file.

Macros

#define offsetof   vsf_offset_of
 
#define clamp(v, a, b)
 
#define ifloor(x)
 
#define iround(x)
 
#define iceil(x)
 
#define idiv255(x)
 

Macro Definition Documentation

◆ offsetof

#define offsetof   vsf_offset_of

◆ clamp

#define clamp ( v,
a,
b )
Value:
min(max(a, v), b)
#define min(x, y)
Definition minmax.h:11
#define max(x, y)
Definition minmax.h:12

◆ ifloor

#define ifloor ( x)
Value:
((x) > 0 ? (int)(x) : (int)((x) - 0.9999999999))

◆ iround

#define iround ( x)
Value:
((x) > 0 ? (int)((x) + 0.5) : (int)((x) - 0.5))

◆ iceil

#define iceil ( x)
Value:
((x) > 0 ? (int)((x) + 0.9999999999) : (int)(x))

◆ idiv255

#define idiv255 ( x)
Value:
((((int)(x) + 1) * 257) >> 16)
Generated from commit: vsfteam/vsf@ceb53fd