From e07e731dfd505416dabc322e47c925911ee2fff1 Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Sun, 13 Dec 2020 00:01:44 +0100 Subject: [PATCH] libtcc1: Add stubs __floatundidf, __fixunsdfdi, __fixunsdfsi. * lib/libtcc1.c (__floatundidf, __fixunsdfdi, __fixunsdfsi): New stubs. --- lib/libtcc1.c | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/lib/libtcc1.c b/lib/libtcc1.c index 9ab56e9d..4f8fec4a 100644 --- a/lib/libtcc1.c +++ b/lib/libtcc1.c @@ -175,6 +175,22 @@ __ashrdi3 (long a, long ah, long b) #endif // __TINYC__ } +double +#if HAVE_LONG_LONG && HAVE_FLOAT +__floatundidf (unsigned long long a) +#else +__floatundidf (unsigned long a) +#endif +{ +#if !__TINYC__ + static int stub = 0; + if (__mes_debug () && !stub) + eputs ("__floatundidf stub\n"); + stub = 1; +#endif + return 0; +} + #if HAVE_LONG_LONG && HAVE_FLOAT long double __floatundixf (unsigned long long a) @@ -258,3 +274,28 @@ __fixsfdi (double a1) #endif return 0; } + +double +__fixunsdfdi (double num, double den) +{ +#if !__TINYC__ + static int stub = 0; + if (__mes_debug () && !stub) + eputs ("__fixunsdfdi stub\n"); + stub = 1; +#endif + return 0; +} + +int +__fixunsdfsi (int a, int b) +{ +#if !__TINYC__ + static int stub = 0; + if (__mes_debug () && !stub) + eputs ("__fixunsdfsi stub\n"); + stub = 1; +#endif + return 0; +} +