Match MSL math_sun #106

Merged
coah80 merged 1 commits from agent/continue-0922/65-HBMBase into main 2026-09-22 05:19:13 +00:00
2 changed files with 11 additions and 1 deletions

View File

@@ -1976,7 +1976,7 @@ config.libs = [
Object(Matching, "PPC_EABI/sysenv.GCN.c"),
Object(Matching, "PPC_EABI/uart_console_io_gcn.c"),
Object(Matching, "PPC_EABI/abort_exit_ppc_eabi.c"),
Object(NonMatching, "MSL_Common/math_sun.c"),
Object(Matching, "MSL_Common/math_sun.c", extra_cflags=["-Cpp_exceptions on"]),
Object(NonMatching, "MSL_Common/extras.c"),
Object(Matching, "MSL_Common_Embedded/Math/e_acos.c"),

View File

@@ -0,0 +1,10 @@
#include <math.h>
double scalbn(double x, int n) {
double man;
int exponent;
man = frexp(x, &exponent);
exponent += n;
return ldexp(man, exponent);
}