Deleted Added
sdiff udiff text old ( 176280 ) new ( 176305 )
full compact
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 $");
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 "math.h"
26#include "math_private.h"
27
28static const double huge = 1.0e300;
29
30double
31trunc(double x)
32{

--- 33 unchanged lines hidden ---