Searched refs:CntLz (Results 1 – 2 of 2) sorted by relevance
516 CntLz(u32 x) in CntLz() function572 inline u32 CntTz(u32 x) { return 32 - CntLz(~x & (x - 1)); } in CntTz()581 inline u32 ILog2(u32 x) { return 31 - CntLz(x); } in ILog2()590 inline u32 FloorPwr2(u32 x) { return 0x80000000 >> CntLz(x); } in FloorPwr2()599 inline u32 CeilPwr2(u32 x) { return 0x80000000 >> (CntLz(x - 1) - 1); } in CeilPwr2()
698 y = (19 * (31 - CntLz(x))) >> 6; in ILog10()