nn::math::RoundUp Function

Syntax

void * RoundUp(
     void * x,
     u32 base
);

Arguments

Name Description
in x Value to operate on.
in base Standard value.

Return Values

Returns the minimum value that is a multiple of base and greater than or equal to x.

Description

Rounds a value up so it is a multiple of the specified value.

Revision History

2011/03/01
Initial version.

CONFIDENTIAL