s_exp2l.c (176231) | s_exp2l.c (251024) |
---|---|
1/*- 2 * Copyright (c) 2005-2008 David Schultz <das@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) 2005-2008 David Schultz <das@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: head/lib/msun/ld80/s_exp2l.c 176231 2008-02-13 10:44:44Z bde $"); | 28__FBSDID("$FreeBSD: head/lib/msun/ld80/s_exp2l.c 251024 2013-05-27 08:50:10Z das $"); |
29 30#include <float.h> 31#include <stdint.h> 32 33#ifdef __i386__ 34#include <ieeefp.h> 35#endif 36 37#include "fpmath.h" 38#include "math.h" 39 40#define TBLBITS 7 41#define TBLSIZE (1 << TBLBITS) 42 43#define BIAS (LDBL_MAX_EXP - 1) 44#define EXPMASK (BIAS + LDBL_MAX_EXP) 45 | 29 30#include <float.h> 31#include <stdint.h> 32 33#ifdef __i386__ 34#include <ieeefp.h> 35#endif 36 37#include "fpmath.h" 38#include "math.h" 39 40#define TBLBITS 7 41#define TBLSIZE (1 << TBLBITS) 42 43#define BIAS (LDBL_MAX_EXP - 1) 44#define EXPMASK (BIAS + LDBL_MAX_EXP) 45 |
46static const long double huge = 0x1p10000L; 47#if 0 /* XXX Prevent gcc from erroneously constant folding this. */ 48static const long double twom10000 = 0x1p-10000L; 49#else 50static volatile long double twom10000 = 0x1p-10000L; 51#endif | 46static volatile long double 47 huge = 0x1p10000L, 48 twom10000 = 0x1p-10000L; |
52 53static const double 54 redux = 0x1.8p63 / TBLSIZE, 55 P1 = 0x1.62e42fefa39efp-1, 56 P2 = 0x1.ebfbdff82c58fp-3, 57 P3 = 0x1.c6b08d7049fap-5, 58 P4 = 0x1.3b2ab6fba4da5p-7, 59 P5 = 0x1.5d8804780a736p-10, --- 235 unchanged lines hidden --- | 49 50static const double 51 redux = 0x1.8p63 / TBLSIZE, 52 P1 = 0x1.62e42fefa39efp-1, 53 P2 = 0x1.ebfbdff82c58fp-3, 54 P3 = 0x1.c6b08d7049fap-5, 55 P4 = 0x1.3b2ab6fba4da5p-7, 56 P5 = 0x1.5d8804780a736p-10, --- 235 unchanged lines hidden --- |