Oops, fix the fix in rev.1.10. logb() and logbf() were broken on

denormals, and logb() remained broken after 1.10 because the fix for
logbf() was incompletely translated.

Convert to __FBSDID().
This commit is contained in:
Bruce Evans 2008-02-08 01:22:13 +00:00
parent 97091a2dd7
commit aa7c7c47cf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176101

View File

@ -10,9 +10,8 @@
* ====================================================
*/
#ifndef lint
static char rcsid[] = "$FreeBSD$";
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
/*
* double logb(x)
@ -38,9 +37,9 @@ logb(double x)
if(ix>=0x7ff00000) return x*x;
if(ix<0x00100000) {
x *= two54; /* convert subnormal x to normal */
GET_FLOAT_WORD(ix,x);
GET_HIGH_WORD(ix,x);
ix &= 0x7fffffff;
return (float) ((ix>>20)-1023-54);
return (double) ((ix>>20)-1023-54);
} else
return (double) ((ix>>20)-1023);
}