s_exp2f.c (176450) | s_exp2f.c (251024) |
---|---|
1/*- 2 * Copyright (c) 2005 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 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/src/s_exp2f.c 176450 2008-02-22 02:27:34Z das $"); | 28__FBSDID("$FreeBSD: head/lib/msun/src/s_exp2f.c 251024 2013-05-27 08:50:10Z das $"); |
29 30#include <float.h> 31 32#include "math.h" 33#include "math_private.h" 34 35#define TBLBITS 4 36#define TBLSIZE (1 << TBLBITS) 37 38static const float | 29 30#include <float.h> 31 32#include "math.h" 33#include "math_private.h" 34 35#define TBLBITS 4 36#define TBLSIZE (1 << TBLBITS) 37 38static const float |
39 huge = 0x1p100f, | |
40 redux = 0x1.8p23f / TBLSIZE, 41 P1 = 0x1.62e430p-1f, 42 P2 = 0x1.ebfbe0p-3f, 43 P3 = 0x1.c6b348p-5f, 44 P4 = 0x1.3b2c9cp-7f; 45 | 39 redux = 0x1.8p23f / TBLSIZE, 40 P1 = 0x1.62e430p-1f, 41 P2 = 0x1.ebfbe0p-3f, 42 P3 = 0x1.c6b348p-5f, 43 P4 = 0x1.3b2c9cp-7f; 44 |
46static volatile float twom100 = 0x1p-100f; | 45static volatile float 46 huge = 0x1p100f, 47 twom100 = 0x1p-100f; |
47 48static const double exp2ft[TBLSIZE] = { 49 0x1.6a09e667f3bcdp-1, 50 0x1.7a11473eb0187p-1, 51 0x1.8ace5422aa0dbp-1, 52 0x1.9c49182a3f090p-1, 53 0x1.ae89f995ad3adp-1, 54 0x1.c199bdd85529cp-1, --- 82 unchanged lines hidden --- | 48 49static const double exp2ft[TBLSIZE] = { 50 0x1.6a09e667f3bcdp-1, 51 0x1.7a11473eb0187p-1, 52 0x1.8ace5422aa0dbp-1, 53 0x1.9c49182a3f090p-1, 54 0x1.ae89f995ad3adp-1, 55 0x1.c199bdd85529cp-1, --- 82 unchanged lines hidden --- |