Back to index

glibc  2.9
s_significandf.c
Go to the documentation of this file.
00001 /* s_significandf.c -- float version of s_significand.c.
00002  * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
00003  */
00004 
00005 /*
00006  * ====================================================
00007  * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
00008  *
00009  * Developed at SunPro, a Sun Microsystems, Inc. business.
00010  * Permission to use, copy, modify, and distribute this
00011  * software is freely granted, provided that this notice
00012  * is preserved.
00013  * ====================================================
00014  */
00015 
00016 #if defined(LIBM_SCCS) && !defined(lint)
00017 static char rcsid[] = "$NetBSD: s_significandf.c,v 1.3 1995/05/10 20:48:13 jtc Exp $";
00018 #endif
00019 
00020 #include <math.h>
00021 #include "math_private.h"
00022 
00023 #ifdef __STDC__
00024        float __significandf(float x)
00025 #else
00026        float __significandf(x)
00027        float x;
00028 #endif
00029 {
00030        return __ieee754_scalbf(x,(float) -__ilogbf(x));
00031 }
00032 weak_alias (__significandf, significandf)