gpu_utils.h File Reference
Helper inline functions for kernels.
More...
Go to the source code of this file.
Detailed Description
Helper inline functions for kernels.
- Authors:
- Paul Furgale and Chi Hay Tong
- Date:
- Wed Apr 21 06:44:18 2010
Definition in file gpu_utils.h.
Define Documentation
Function Documentation
ASRL_CUDA_DEVICE void clearLastBit |
( |
float & |
f |
) |
[inline] |
Clears the last bit on a float.
- Parameters:
-
Definition at line 70 of file gpu_utils.h.
ASRL_CUDA_DEVICE void clearLastBit |
( |
int * |
f |
) |
[inline] |
Clears the last bit on an integer
- Parameters:
-
Definition at line 60 of file gpu_utils.h.
ASRL_CUDA_DEVICE bool isLastBitSet |
( |
const float & |
f |
) |
[inline] |
Checks if the last bit is set on a float.
- Parameters:
-
- Returns:
- True if the last bit on the integer is set, fals otherwise
Definition at line 115 of file gpu_utils.h.
ASRL_CUDA_DEVICE bool isLastBitSet |
( |
const int * |
f |
) |
[inline] |
Checks if the last bit is set on an integer
- Parameters:
-
- Returns:
- True if the last bit on the integer is set, fals otherwise
Definition at line 102 of file gpu_utils.h.
ASRL_CUDA_DEVICE void setLastBit |
( |
float & |
f |
) |
[inline] |
Sets the last bit on a float
- Parameters:
-
Definition at line 90 of file gpu_utils.h.
ASRL_CUDA_DEVICE void setLastBit |
( |
int * |
f |
) |
[inline] |
Sets the last bit on an integer
- Parameters:
-
Definition at line 80 of file gpu_utils.h.