Simbody  3.7

These functions perform highly optimized bit-twiddling operations on the built-in integral types, and sometimes on the representations of floating point types as well. More...

Modules

 atMostOneBitIsSet()
 atMostOneBitIsSet(i) provides an extremely fast way to determine whether an integral type is either zero or consists of a single set bit.
 
 exactlyOneBitIsSet()
 exactlyOneBitIsSet(i) provides a very fast way to determine whether an integral type has exactly one bit set.
 
 signBit()
 signBit(i) provides a fast way to determine the value of the sign bit (as a bool) for integral and floating types.
 

Detailed Description

These functions perform highly optimized bit-twiddling operations on the built-in integral types, and sometimes on the representations of floating point types as well.