Files
st/libs/c/src/extras.c
T
Yanis c98c03de39 Match MSL_C (#8)
* match wstring.c

* match math_api.c, mbstring.c, mem.c and mem_funcs.c

* more progress

* build issues

* fix non-matching issues

* reorganise files

* match fdlibm (+ libc progress)

* fix jp build

* solved some non-matchings and progress

* removed types.h usage in libc

* match data and add missing delinks for jp
2025-12-17 14:08:53 +01:00

12 lines
159 B
C

#include <math.h>
double scalbn(double x, int n) {
double value;
int exp;
value = frexp(x, &exp);
exp += n;
return ldexp(value, exp);
}