Embedded Artistry Framework
Embedded Systems C++ Framework
Macros | Functions | Variables
s_exp2.c File Reference
#include "cdefs-compat.h"
#include <float.h>
#include <openlibm_math.h>
#include "math_private.h"
Include dependency graph for s_exp2.c:

Macros

#define TBLBITS   8
 
#define TBLSIZE   (1 << TBLBITS)
 

Functions

OLM_DLLEXPORT double exp2 (double x)
 

Variables

static const double huge = 0x1p1000
 
static const double redux = 0x1.8p52 / TBLSIZE
 
static const double P1 = 0x1.62e42fefa39efp-1
 
static const double P2 = 0x1.ebfbdff82c575p-3
 
static const double P3 = 0x1.c6b08d704a0a6p-5
 
static const double P4 = 0x1.3b2ab88f70400p-7
 
static const double P5 = 0x1.5d88003875c74p-10
 
static volatile double twom1000 = 0x1p-1000
 
static const double tbl [TBLSIZE *2]
 

Macro Definition Documentation

◆ TBLBITS

#define TBLBITS   8

◆ TBLSIZE

#define TBLSIZE   (1 << TBLBITS)

Function Documentation

◆ exp2()

OLM_DLLEXPORT double exp2 ( double  x)

References GET_HIGH_WORD, GET_LOW_WORD, huge, INSERT_WORDS, k, P1, P2, P3, P4, P5, r, redux, STRICT_ASSIGN, t, tbl, TBLBITS, TBLSIZE, twom1000, and z.

Referenced by _etoa(), exp2_test(), and exp2l().

Here is the caller graph for this function:

Variable Documentation

◆ huge

const double huge = 0x1p1000
static

Referenced by exp2().

◆ P1

const double P1 = 0x1.62e42fefa39efp-1
static

Referenced by exp2().

◆ P2

const double P2 = 0x1.ebfbdff82c575p-3
static

Referenced by exp2().

◆ P3

const double P3 = 0x1.c6b08d704a0a6p-5
static

Referenced by exp2().

◆ P4

const double P4 = 0x1.3b2ab88f70400p-7
static

Referenced by exp2().

◆ P5

const double P5 = 0x1.5d88003875c74p-10
static

Referenced by exp2().

◆ redux

const double redux = 0x1.8p52 / TBLSIZE
static

Referenced by exp2().

◆ tbl

const double tbl[TBLSIZE *2]
static

Referenced by exp2().

◆ twom1000

volatile double twom1000 = 0x1p-1000
static

Referenced by exp2().