mirror of
https://github.com/zeldaret/st
synced 2026-08-26 08:02:50 -04:00
c98c03de39
* 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
12 lines
159 B
C
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);
|
|
}
|