Autonomous Space Robotics Lab

Speeded Up SURF

UTIAS ASRL

gpu_utils.h File Reference

Helper inline functions for kernels. More...

Go to the source code of this file.

Defines

#define ASRL_CUDA_DEVICE

Functions

ASRL_CUDA_DEVICE void clearLastBit (int *f)
ASRL_CUDA_DEVICE void clearLastBit (float &f)
ASRL_CUDA_DEVICE void setLastBit (int *f)
ASRL_CUDA_DEVICE void setLastBit (float &f)
ASRL_CUDA_DEVICE bool isLastBitSet (const int *f)
ASRL_CUDA_DEVICE bool isLastBitSet (const float &f)

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

#define ASRL_CUDA_DEVICE

Definition at line 52 of file gpu_utils.h.


Function Documentation

ASRL_CUDA_DEVICE void clearLastBit ( float &  f  )  [inline]

Clears the last bit on a float.

Parameters:
f 

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:
f 

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:
f The float to check
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:
f The integer to check
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:
f 

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:
f 

Definition at line 80 of file gpu_utils.h.


Generated on Fri Apr 30 20:06:20 2010 for gpusurf by doxygen 1.6.2