mirror of
https://github.com/g-truc/glm.git
synced 2024-11-30 03:44:38 +00:00
- Use Cuda built-in function for abs function implementation with Cuda compiler
This commit is contained in:
parent
cc9916b2c6
commit
0e780a5efd
@ -29,6 +29,17 @@ namespace detail
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if GLM_COMPILER & GLM_COMPILER_CUDA
|
||||||
|
template <>
|
||||||
|
struct compute_abs<float, true>
|
||||||
|
{
|
||||||
|
GLM_FUNC_QUALIFIER static float call(float x)
|
||||||
|
{
|
||||||
|
return fabsf(x);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
template <typename genFIType>
|
template <typename genFIType>
|
||||||
struct compute_abs<genFIType, false>
|
struct compute_abs<genFIType, false>
|
||||||
{
|
{
|
||||||
|
@ -71,6 +71,7 @@ glm::mat4 camera(float Translate, glm::vec2 const & Rotate)
|
|||||||
- Improved GLM_FORCE_EXPLICIT_CTOR coverage #481
|
- Improved GLM_FORCE_EXPLICIT_CTOR coverage #481
|
||||||
- Improved OpenMP support detection for Clang, GCC, ICC and VC
|
- Improved OpenMP support detection for Clang, GCC, ICC and VC
|
||||||
- Added constexpr for *vec*, *mat*, *quat* and *dual_quat* types #493
|
- Added constexpr for *vec*, *mat*, *quat* and *dual_quat* types #493
|
||||||
|
- Use Cuda built-in function for abs function implementation with Cuda compiler
|
||||||
|
|
||||||
##### Fixes:
|
##### Fixes:
|
||||||
- Fixed GTX_extended_min_max filename typo #386
|
- Fixed GTX_extended_min_max filename typo #386
|
||||||
|
Loading…
Reference in New Issue
Block a user