We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
abs
1 parent d09231a commit 2cc1644Copy full SHA for 2cc1644
offload/test/offloading/ompx_bare_shfl_down_sync.cpp
@@ -23,7 +23,7 @@ bool equal(T LHS, T RHS) {
23
template <typename T,
24
std::enable_if_t<std::is_floating_point<T>::value, bool> = true>
25
bool equal(T LHS, T RHS) {
26
- return std::abs(LHS - RHS) < std::numeric_limits<T>::epsilon();
+ return __builtin_fabs(LHS - RHS) < std::numeric_limits<T>::epsilon();
27
}
28
29
template <typename T> void test() {
0 commit comments