Simbody 3.7
Loading...
Searching...
No Matches

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...

Topics

 atMostOneBitIsSet()
 
 
 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.