Synopsis

size_t ugn_Fls_sz(size_t n)

Purpose

Find the last set (most significant) bit.

Input

n

Number to find the last set bit.

Return

If n is 0, then 0. Otherwise, the most significant set bit which is a number from 1 to the maximum number of bits in the type.