Deleted Added
full compact
s_trunc.c (176280) s_trunc.c (176305)
1/* @(#)s_floor.c 5.1 93/09/24 */
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#include <sys/cdefs.h>
1/* @(#)s_floor.c 5.1 93/09/24 */
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#include <sys/cdefs.h>
14__FBSDID("$FreeBSD: head/lib/msun/src/s_trunc.c 176280 2008-02-14 15:10:34Z bde $");
14__FBSDID("$FreeBSD: head/lib/msun/src/s_trunc.c 176305 2008-02-15 07:01:40Z bde $");
15
16/*
17 * trunc(x)
18 * Return x rounded toward 0 to integral value
19 * Method:
20 * Bit twiddling.
21 * Exception:
22 * Inexact flag raised if x not equal to trunc(x).
23 */
24
15
16/*
17 * trunc(x)
18 * Return x rounded toward 0 to integral value
19 * Method:
20 * Bit twiddling.
21 * Exception:
22 * Inexact flag raised if x not equal to trunc(x).
23 */
24
25#include <float.h>
26
25#include "math.h"
26#include "math_private.h"
27
28static const double huge = 1.0e300;
29
30double
31trunc(double x)
32{

--- 33 unchanged lines hidden ---
27#include "math.h"
28#include "math_private.h"
29
30static const double huge = 1.0e300;
31
32double
33trunc(double x)
34{

--- 33 unchanged lines hidden ---