Nebula
Loading...
Searching...
No Matches
Util::Round Class Reference

#include <round.h>

Static Public Member Functions

static uint RoundUp2 (uint val)
 round up to nearest 2 bytes boundary
 
static uint RoundUp4 (uint val)
 round up to nearest 4 bytes boundary
 
static uint RoundUp8 (uint val)
 round up to nearest 8 bytes boundary
 
static uint RoundUp16 (uint val)
 round up to nearest 16 bytes boundary
 
static uint RoundUp32 (uint val)
 round up to nearest 32 bytes boundary
 
static uint RoundUp (uint val, uint boundary)
 generic roundup
 

Member Function Documentation

◆ RoundUp()

__forceinline uint Util::Round::RoundUp ( uint val,
uint boundary )
static

generic roundup

◆ RoundUp16()

__forceinline uint Util::Round::RoundUp16 ( uint val)
static

round up to nearest 16 bytes boundary

◆ RoundUp2()

__forceinline uint Util::Round::RoundUp2 ( uint val)
static

round up to nearest 2 bytes boundary

◆ RoundUp32()

__forceinline uint Util::Round::RoundUp32 ( uint val)
static

round up to nearest 32 bytes boundary

◆ RoundUp4()

__forceinline uint Util::Round::RoundUp4 ( uint val)
static

round up to nearest 4 bytes boundary

◆ RoundUp8()

__forceinline uint Util::Round::RoundUp8 ( uint val)
static

round up to nearest 8 bytes boundary


The documentation for this class was generated from the following file: