project_files/hwc/rtl/pmath.c
changeset 14185 801dc57371c3
parent 8047 25a4daa6473c
child 14197 3e551b0535fb
--- a/project_files/hwc/rtl/pmath.c	Fri Nov 09 17:44:19 2018 +0300
+++ b/project_files/hwc/rtl/pmath.c	Fri Nov 09 16:28:23 2018 +0100
@@ -32,12 +32,16 @@
 
 float __attribute__((overloadable)) fpcrtl_abs(float x)
 {
-    return fabs(x);
+    return fabsf(x);
 }
 double __attribute__((overloadable)) fpcrtl_abs(double x)
 {
     return fabs(x);
 }
+long double __attribute__((overloadable)) fpcrtl_abs(long double x)
+{
+    return fabsl(x);
+}
 int __attribute__((overloadable)) fpcrtl_abs(int x)
 {
     return abs(x);