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 13176451Sdas#include <sys/cdefs.h> 14176451Sdas__FBSDID("$FreeBSD: releng/11.0/lib/msun/src/s_significand.c 176451 2008-02-22 02:30:36Z das $"); 152116Sjkh 162116Sjkh/* 172116Sjkh * significand(x) computes just 182116Sjkh * scalb(x, (double) -ilogb(x)), 192116Sjkh * for exercising the fraction-part(F) IEEE 754-1985 test vector. 202116Sjkh */ 212116Sjkh 222116Sjkh#include "math.h" 232116Sjkh#include "math_private.h" 242116Sjkh 2597413Salfreddouble 26117912Spetersignificand(double x) 272116Sjkh{ 282116Sjkh return __ieee754_scalb(x,(double) -ilogb(x)); 292116Sjkh} 30