Formerly m68k/fpu/__logb.c.~4~

This commit is contained in:
Roland McGrath 1993-02-02 00:29:15 +00:00
parent b7c90718e6
commit 45dba738f9
1 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991, 1992 Free Software Foundation, Inc. /* Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -25,15 +25,15 @@ Cambridge, MA 02139, USA. */
double double
DEFUN(__logb, (x), double x) DEFUN(__logb, (x), double x)
{ {
if (__isnan(x)) if (__isnan (x))
return x; return x;
if (__isinf(x)) if (__isinf (x))
return fabs(x); return fabs (x);
if (x == 0.0) if (x == 0.0)
asm("flog2%.x %0" : "=f" (x) : "0" (x)); asm ("flog2%.x %0, %0" : "=f" (x) : "0" (x));
else else
asm("fgetexp%.x %0" : "=f" (x) : "0" (x)); asm ("fgetexp%.x %0, %0" : "=f" (x) : "0" (x));
return x; return x;
} }