40 return ((
uint)val + (2 - 1)) & ~(2 - 1);
49 return ((
uint)val + (4 - 1)) & ~(4 - 1);
58 return ((
uint)val + (8 - 1)) & ~(8 - 1);
67 return ((
uint)val + (16 - 1)) & ~(16 - 1);
76 return ((
uint)val + (32 - 1)) & ~(32 - 1);
86 return (((val - 1) / boundary) + 1) * boundary;
static uint RoundUp(uint val, uint boundary)
generic roundup
Definition round.h:83
static uint RoundUp8(uint val)
round up to nearest 8 bytes boundary
Definition round.h:56
static uint RoundUp32(uint val)
round up to nearest 32 bytes boundary
Definition round.h:74
static uint RoundUp2(uint val)
round up to nearest 2 bytes boundary
Definition round.h:38
static uint RoundUp16(uint val)
round up to nearest 16 bytes boundary
Definition round.h:65
static uint RoundUp4(uint val)
round up to nearest 4 bytes boundary
Definition round.h:47
#define n_assert(exp)
Definition debug.h:50
A pinned array is an array which manages its own virtual memory.
Definition String.cs:6
unsigned int uint
Definition types.h:31