CUGAR's convenience functions and functors needed for every day's work...
|
| template<uint32 N> |
| CUGAR_FORCEINLINE CUGAR_HOST_DEVICE uint32 | cugar::lo_bits () |
| |
| template<uint32 N> |
| CUGAR_FORCEINLINE CUGAR_HOST_DEVICE uint32 | cugar::hi_bits () |
| |
| template<typename Iterator , typename T > |
| CUGAR_FORCEINLINE CUGAR_HOST_DEVICE uint32 | cugar::count_occurrences (const Iterator begin, uint32 size, const T val, const uint32 max_occ=uint32(-1)) |
| |
| template<typename L , typename R > |
| CUGAR_HOST_DEVICE L | cugar::divide_ri (const L x, const R y) |
| |
| template<typename L , typename R > |
| CUGAR_HOST_DEVICE L | cugar::divide_rz (const L x, const R y) |
| |
| template<typename L , typename R > |
| CUGAR_HOST_DEVICE L | cugar::round_i (const L x, const R y) |
| |
| template<typename L , typename R > |
| CUGAR_HOST_DEVICE L | cugar::round_z (const L x, const R y) |
| |
| template<typename L , typename R > |
| CUGAR_HOST_DEVICE L | cugar::round (const L x, const R y) |
| |
| template<typename Out , typename In > |
| CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Out | cugar::binary_cast (const In in) |
| |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE bool | cugar::is_pow2 (const uint32 C) |
| |
|
template<uint32 C> |
| CUGAR_FORCEINLINE CUGAR_HOST_DEVICE bool | cugar::is_pow2_static () |
| |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE uint32 | cugar::next_power_of_two (uint32 v) |
| |
|
template<uint32 N, typename I > |
| CUGAR_FORCEINLINE CUGAR_HOST_DEVICE I | cugar::align (const I a) |
| |
|
template<uint32 N, typename I > |
| CUGAR_FORCEINLINE CUGAR_HOST_DEVICE I | cugar::align_down (const I a) |
| |