bit manipulation - Fastest way to read Left-Most bit from unsigned int (C++)? -
What is the fastest way to read most bits from unsigned int?
Thanks, Online SW
i & gt; & Gt; (Size (unsigned integer) * CHAR_BIT - 1)
sizeof
, multiplication and subtraction will be computed by any appropriate compiler at compile time, so it is a single The right-shift instruction should be made, the faster you can get it.
Comments
Post a Comment