ALIGN_DOWN_POW2

Table of Contents

ALIGN_DOWN_POW2

Description

Aligns the given value down to the nearest power-of-two multiple.

Parameters

NameDirectionDescription
valueinThe value to be aligned down.
alignmentinThe power-of-two alignment boundary.

Success

Returns power-of-two aligned-down value when alignment > 1.

Failure

Function cannot fail - returns original value if alignment <= 1.

Usage example (Cross-references)

No external code usages found in the scanned files.

Share :

Related Posts

ALIGN_DOWN

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

Read More

ALIGN_UP_POW2

ALIGN_UP_POW2 Description Aligns the given value up to the nearest power-of-two multiple.

Read More

ALIGN_UP

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

Read More