Skip to content

Commit 2332a15

Browse files
committed
Using explicit std namespace for calling sqrt, to remember that it relies on the standard library.
1 parent a7daa04 commit 2332a15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/DFPSR/base/noSimd.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ namespace dsr {
6666
inline float gather_F32(dsr::SafePointer<const float> data, const uint32_t &elementOffset) { return data[elementOffset]; }
6767

6868
// Comparisons between all lanes, which is one lane for scalar types.
69-
inline bool allLanesEqual (const uint8_t& left, const uint8_t& right) { return left == right; }
69+
inline bool allLanesEqual (const uint8_t& left, const uint8_t& right) { return left == right; }
7070
inline bool allLanesEqual (const uint16_t& left, const uint16_t& right) { return left == right; }
7171
inline bool allLanesEqual (const uint32_t& left, const uint32_t& right) { return left == right; }
7272
inline bool allLanesEqual (const int32_t& left, const int32_t& right) { return left == right; }
@@ -186,9 +186,9 @@ namespace dsr {
186186

187187
inline float reciprocal(float value) { return 1.0f / value; }
188188

189-
inline float reciprocalSquareRoot(float value) { return 1.0f / sqrt(value); }
189+
inline float reciprocalSquareRoot(float value) { return 1.0f / std::sqrt(value); }
190190

191-
inline float squareRoot(float value) { return sqrt(value); }
191+
inline float squareRoot(float value) { return std::sqrt(value); }
192192

193193
// TODO: Add more functions from simd.h.
194194
}

0 commit comments

Comments
 (0)