ALIGN_DOWN

Table of Contents

ALIGN_DOWN

Description

Aligns the given value down to the nearest multiple of alignment.

Parameters

NameDirectionDescription
valueinThe value to be aligned down.
alignmentinThe alignment boundary.

Success

Returns aligned-down value when alignment > 1, original value otherwise.

Failure

Function cannot fail - always returns a valid value.

Usage example (Cross-references)

No external code usages found in the scanned files.

Share :

Related Posts

CLAMP

CLAMP Description Clamps the value of x to be within the inclusive range [lo, hi].

Read More

LVAL

LVAL Description Creates a temporary, addressable l-value from a given expression x.

Read More

MAX2

MAX2 Description Returns the larger of two values x and y.

Read More