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