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

MIN2

MIN2 Description Returns the smaller of two values x and y.

Read More

ALIGN_UP

ALIGN_UP Description Aligns the given value up to the nearest multiple of alignment.

Read More

CLAMP

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

Read More