aboutsummaryrefslogblamecommitdiff
path: root/lib/msun/src/s_significandf.c
blob: ad030e239133efb50b61f33639e3f5e84c0dc918 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                           
                                                        



                                                       

                      



                         

                     


                                                      
/* s_significandf.c -- float version of s_significand.c.
 * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
 */

/*
 * ====================================================
 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
 *
 * Developed at SunPro, a Sun Microsystems, Inc. business.
 * Permission to use, copy, modify, and distribute this
 * software is freely granted, provided that this notice
 * is preserved.
 * ====================================================
 */

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include "math.h"
#include "math_private.h"

float
significandf(float x)
{
	return __ieee754_scalbf(x,(float) -ilogbf(x));
}