__device__ int __ffs ( int  x  ) 

Find the position of the first (least significant) bit set to 1 in x, where the least significant bit position is 1.

Returns:
Returns a value between 0 and 32 inclusive representing the position of the first bit set.
  • __ffs(0) returns 0.


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA