From: Ulrich Drepper Date: Sat, 12 Apr 1997 23:37:12 +0000 (+0000) Subject: (__rinttol, rinttol): New inline. X-Git-Tag: glibc-2.16-ports-before-merge~3635 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=90ad32dd7276f309c761fdee5549c80b609cb8c1;p=thirdparty%2Fglibc.git (__rinttol, rinttol): New inline. --- diff --git a/sysdeps/m68k/fpu/__math.h b/sysdeps/m68k/fpu/__math.h index 9b52b32d0c8..68a6d90e326 100644 --- a/sysdeps/m68k/fpu/__math.h +++ b/sysdeps/m68k/fpu/__math.h @@ -282,6 +282,13 @@ __inline_functions (float,f) __inline_functions (long double,l) #undef __inline_functions +__m81_defun (long int, __rinttol, (long double __x)) +{ + long int __result; + __asm ("fmove%.l %1, %0" : "=dm" (__result) : "f" (__x)); + return __result; +} + #if !defined __NO_MATH_INLINES && defined __OPTIMIZE__ /* Define inline versions of the user visible functions. */ @@ -349,6 +356,7 @@ __inline_forward_c(int,ilogbl, (long double __value), (__value)) #endif #ifdef __USE_ISOC9X __inline_forward_c(long double,nearbyintl, (long double __value), (__value)) +__inline_forward_c(long int,rinttol, (long double __value), (__value)) #endif #endif /* Use misc or ISO C9X */