s_significand.c revision 97413
12116Sjkh/* @(#)s_signif.c 5.1 93/09/24 */
22116Sjkh/*
32116Sjkh * ====================================================
42116Sjkh * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
52116Sjkh *
62116Sjkh * Developed at SunPro, a Sun Microsystems, Inc. business.
72116Sjkh * Permission to use, copy, modify, and distribute this
88870Srgrimes * software is freely granted, provided that this notice
92116Sjkh * is preserved.
102116Sjkh * ====================================================
112116Sjkh */
122116Sjkh
132116Sjkh#ifndef lint
1450476Speterstatic char rcsid[] = "$FreeBSD: head/lib/msun/src/s_significand.c 97413 2002-05-28 18:15:04Z alfred $";
152116Sjkh#endif
162116Sjkh
172116Sjkh/*
182116Sjkh * significand(x) computes just
192116Sjkh * 	scalb(x, (double) -ilogb(x)),
202116Sjkh * for exercising the fraction-part(F) IEEE 754-1985 test vector.
212116Sjkh */
222116Sjkh
232116Sjkh#include "math.h"
242116Sjkh#include "math_private.h"
252116Sjkh
2697413Salfreddouble
2797413Salfred__generic_significand(double x)
282116Sjkh{
292116Sjkh	return __ieee754_scalb(x,(double) -ilogb(x));
302116Sjkh}
31