nn::math::RoundDown Function

Syntax

const void * RoundDown(
     const void * x,
     u32 base
);

Parameters

Name Description
in x Value to operate on.
in base Standard value (a power of two).

Return Values

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

Description

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

Revision History

2011/03/01
Initial version.

CONFIDENTIAL