Back to index

glibc  2.9
s_significandl.c
Go to the documentation of this file.
00001 /* s_significandl.c -- long double version of s_significand.c.
00002  * Conversion to long double by Ulrich Drepper,
00003  * Cygnus Support, drepper@cygnus.com.
00004  */
00005 
00006 /*
00007  * ====================================================
00008  * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
00009  *
00010  * Developed at SunPro, a Sun Microsystems, Inc. business.
00011  * Permission to use, copy, modify, and distribute this
00012  * software is freely granted, provided that this notice
00013  * is preserved.
00014  * ====================================================
00015  */
00016 
00017 #if defined(LIBM_SCCS) && !defined(lint)
00018 static char rcsid[] = "$NetBSD: $";
00019 #endif
00020 
00021 /*
00022  * significandl(x) computes just
00023  *     scalbl(x, (long double) -ilogbl(x)),
00024  * for exercising the fraction-part(F) IEEE 754-1985 test vector.
00025  */
00026 
00027 #include <math.h>
00028 #include "math_private.h"
00029 
00030 #ifdef __STDC__
00031        long double __significandl(long double x)
00032 #else
00033        long double __significandl(x)
00034        long double x;
00035 #endif
00036 {
00037        return __ieee754_scalbl(x,(long double) -__ilogbl(x));
00038 }
00039 weak_alias (__significandl, significandl)