From 41abbba52adac030b8d63919cc2c9a8b6011c04e Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Mon, 7 Jun 2021 19:08:17 +0200 Subject: [PATCH] remove calls to gint-backed standard functions --- src/gintctl.c | 5 +++-- src/libs/openlibm.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gintctl.c b/src/gintctl.c index 438d571..a2739ad 100644 --- a/src/gintctl.c +++ b/src/gintctl.c @@ -5,7 +5,6 @@ #include #include #include -#include #include #include @@ -24,6 +23,8 @@ #include +#include + /* TODO: * Interrupt controller state? * Clock frequencies @@ -188,7 +189,7 @@ int main(GUNUSED int isappli, GUNUSED int optnum) prof_init(); /* Enable floating-point formatters */ - kprint_enable_fp(); + __printf_enable_fp(); #ifdef FX9860G /* Use the Unicode font uf5x7 on fx-9860G */ diff --git a/src/libs/openlibm.c b/src/libs/openlibm.c index 8223e57..b50701a 100644 --- a/src/libs/openlibm.c +++ b/src/libs/openlibm.c @@ -56,8 +56,8 @@ void gintctl_libs_openlibm(void) }; plot(&plotspec); - row_print(8, 1, "exp(1.0) = %.8j", (int)(1e8*exp(1.0))); - row_print(9, 1, "atan(1.0)*4 = %.8j", (int)(1e8*4*atan(1.0))); + row_print(8, 1, "exp(1.0) = %g", exp(1.0)); + row_print(9, 1, "atan(1.0)*4 = %g", atan(1.0)*4); #endif dupdate();