2 parents caa7334 + 5d44e6a commit aa47f39Copy full SHA for aa47f39
1 file changed
stmhal/math.c
@@ -72,6 +72,7 @@ float __attribute__((pcs("aapcs"))) __aeabi_d2f(double x) {
72
fx.m = (dx.m>>(52-23)); // right justify
73
return fx.f;
74
}
75
+
76
double __aeabi_dmul(double x , double y) {
77
return 0.0;
78
@@ -85,6 +86,18 @@ float sqrtf(float x) {
85
86
return x;
87
88
89
+#ifndef NDEBUG
90
+float copysignf(float x, float y) {
91
+ float_s_t fx={.f = x};
92
+ float_s_t fy={.f = y};
93
94
+ // copy sign bit;
95
+ fx.s = fy.s;
96
97
+ return fx.f;
98
+}
99
+#endif
100
101
// some compilers define log2f in terms of logf
102
#ifdef log2f
103
#undef log2f
0 commit comments