Local

group Local_CILmemoryProtection

CILmemoryProtection locals.

lorem

Macros

group Macros_CILmemoryProtection_c

Variables

group Variables_CILmemoryProtection_c

Variables

const int MultiplyDeBruijnBitPosition[32] __OS_CONSTS_SECTION IS_INITIALIZED_TO  {0, 9,  1,  10, 13, 21, 2,  29, 11, 14, 16, 18, 22, 25, 3, 30,8, 12, 20, 28, 15, 17, 24, 7,  19, 27, 23, 6,  26, 5,  4, 31 }

API’s

group Apis_CILmemoryProtection_c

Getters

group Getters_CILmemoryProtection_c

Setters

group Setters_CILmemoryProtection_c

General

group General_CILmemoryProtection_c

Functions

BitWidthType CILmemoryProtection_fastLogBase2(BitWidthType size)

Calculate fast log with base 2.

The implementation contains computation of the log base 2 of a 32-bit integer with a small table lookup and multiply. All credits to https://graphics.stanford.edu/~seander/bithacks.html

Parameters

BitWidthType[in] size

Returns

none