Skip to content
Snippets Groups Projects
Commit a5f7a151 authored by Thomas Kennedy's avatar Thomas Kennedy
Browse files

Merge branch 'alauni/cs417-lecture-examples-master'

parents 12e60ede 0a1f1811
No related branches found
No related tags found
No related merge requests found
...@@ -16,8 +16,8 @@ namespace std { ...@@ -16,8 +16,8 @@ namespace std {
*/ */
inline inline
float128 abs(float128 x) float128 abs(float128 x)
{ {
return (x < 0 ? -x : x); return signbit(x) ? changesign(x) : x;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment