Deleted Added
full compact
catrig.c (324006) catrig.c (330446)
1/*-
2 * Copyright (c) 2012 Stephen Montgomery-Smith <stephen@FreeBSD.ORG>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2012 Stephen Montgomery-Smith <stephen@FreeBSD.ORG>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: stable/11/lib/msun/src/catrig.c 324006 2017-09-26 09:01:56Z dim $");
28__FBSDID("$FreeBSD: stable/11/lib/msun/src/catrig.c 330446 2018-03-05 06:59:30Z eadler $");
29
30#include <complex.h>
31#include <float.h>
32
33#include "math.h"
34#include "math_private.h"
35
36#undef isinf

--- 567 unchanged lines hidden (view full) ---

604
605 if (ax > RECIP_EPSILON || ay > RECIP_EPSILON)
606 return (CMPLX(real_part_reciprocal(x, y),
607 copysign(pio2_hi + pio2_lo, y)));
608
609 if (ax < SQRT_3_EPSILON / 2 && ay < SQRT_3_EPSILON / 2) {
610 /*
611 * z = 0 was filtered out above. All other cases must raise
29
30#include <complex.h>
31#include <float.h>
32
33#include "math.h"
34#include "math_private.h"
35
36#undef isinf

--- 567 unchanged lines hidden (view full) ---

604
605 if (ax > RECIP_EPSILON || ay > RECIP_EPSILON)
606 return (CMPLX(real_part_reciprocal(x, y),
607 copysign(pio2_hi + pio2_lo, y)));
608
609 if (ax < SQRT_3_EPSILON / 2 && ay < SQRT_3_EPSILON / 2) {
610 /*
611 * z = 0 was filtered out above. All other cases must raise
612 * inexact, but this is the only only that needs to do it
612 * inexact, but this is the only case that needs to do it
613 * explicitly.
614 */
615 raise_inexact();
616 return (z);
617 }
618
619 if (ax == 1 && ay < DBL_EPSILON)
620 rx = (m_ln2 - log(ay)) / 2;

--- 33 unchanged lines hidden ---
613 * explicitly.
614 */
615 raise_inexact();
616 return (z);
617 }
618
619 if (ax == 1 && ay < DBL_EPSILON)
620 rx = (m_ln2 - log(ay)) / 2;

--- 33 unchanged lines hidden ---