Subversion Repositories Kolibri OS

Rev

Rev 4872 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4349 Serge 1
 
2
/*
3
 * ====================================================
4
 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * Developed at SunPro, a Sun Microsystems, Inc. business.
7
 * Permission to use, copy, modify, and distribute this
8
 * software is freely granted, provided that this notice
9
 * is preserved.
10
 * ====================================================
11
 */
12
13
 
14
 * significand(x) computes just
15
 * 	scalb(x, (double) -ilogb(x)),
16
 * for exercising the fraction-part(F) IEEE 754-1985 test vector.
17
 */
18
19
 
20
21
 
22
23
 
24
	double significand(double x)
25
#else
26
	double significand(x)
27
	double x;
28
#endif
29
{
30
	return __ieee754_scalb(x,(double) -ilogb(x));
31
}
32
33
 
34