Home
last modified time | relevance | path

Searched refs:CntLz (Results 1 – 2 of 2) sorted by relevance

/CTR-SDK-0.14.4/include/nn/math/
Dmath_Arithmetic.h517 CntLz(u32 x) in CntLz() function
576 inline u32 CntTz(u32 x) { return 32 - CntLz(~x & (x - 1)); } in CntTz()
585 inline u32 ILog2(u32 x) { return 31 - CntLz(x); } in ILog2()
594 inline u32 FloorPwr2(u32 x) { return 0x80000000 >> CntLz(x); } in FloorPwr2()
603 inline u32 CeilPwr2(u32 x) { return 0x80000000 >> (CntLz(x - 1) - 1); } in CeilPwr2()
/CTR-SDK-0.14.4/sources/libraries/math/
Dmath_Arithmetic.cpp698 y = (19 * (31 - CntLz(x))) >> 6; in ILog10()