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

Macros

#define TBLBITS   7
 
#define TBLSIZE   (1 << TBLBITS)
 
#define BIAS   (LDBL_MAX_EXP - 1)
 
#define EXPMASK   (BIAS + LDBL_MAX_EXP)
 

Functions

OLM_DLLEXPORT long double exp2l (long double x)
 

Variables

static volatile long double twom10000 = 0x1p-10000L
 
static const long double huge = 0x1p10000L
 
static const long double P1 = 0x1.62e42fefa39ef35793c7673007e6p-1L
 
static const long double P2 = 0x1.ebfbdff82c58ea86f16b06ec9736p-3L
 
static const long double P3 = 0x1.c6b08d704a0bf8b33a762bad3459p-5L
 
static const long double P4 = 0x1.3b2ab6fba4e7729ccbbe0b4f3fc2p-7L
 
static const long double P5 = 0x1.5d87fe78a67311071dee13fd11d9p-10L
 
static const long double P6 = 0x1.430912f86c7876f4b663b23c5fe5p-13L
 
static const double P7 = 0x1.ffcbfc588b041p-17
 
static const double P8 = 0x1.62c0223a5c7c7p-20
 
static const double P9 = 0x1.b52541ff59713p-24
 
static const double P10 = 0x1.e4cf56a391e22p-28
 
static const double redux = 0x1.8p112 / TBLSIZE
 
static const long double tbl [TBLSIZE]
 
static const float eps [TBLSIZE]
 

Macro Definition Documentation

◆ BIAS

#define BIAS   (LDBL_MAX_EXP - 1)

◆ EXPMASK

#define EXPMASK   (BIAS + LDBL_MAX_EXP)

◆ TBLBITS

#define TBLBITS   7

◆ TBLSIZE

#define TBLSIZE   (1 << TBLBITS)

Function Documentation

◆ exp2l()

OLM_DLLEXPORT long double exp2l ( long double  x)

Variable Documentation

◆ eps

const float eps[TBLSIZE]
static

Referenced by dtoa(), exp2l(), and gdtoa().

◆ huge

const long double huge = 0x1p10000L
static

Referenced by exp2l().

◆ P1

const long double P1 = 0x1.62e42fefa39ef35793c7673007e6p-1L
static

Referenced by exp2l().

◆ P10

const double P10 = 0x1.e4cf56a391e22p-28
static

Referenced by exp2l().

◆ P2

const long double P2 = 0x1.ebfbdff82c58ea86f16b06ec9736p-3L
static

Referenced by exp2l().

◆ P3

const long double P3 = 0x1.c6b08d704a0bf8b33a762bad3459p-5L
static

Referenced by exp2l().

◆ P4

const long double P4 = 0x1.3b2ab6fba4e7729ccbbe0b4f3fc2p-7L
static

Referenced by exp2l().

◆ P5

const long double P5 = 0x1.5d87fe78a67311071dee13fd11d9p-10L
static

Referenced by exp2l().

◆ P6

const long double P6 = 0x1.430912f86c7876f4b663b23c5fe5p-13L
static

Referenced by exp2l().

◆ P7

const double P7 = 0x1.ffcbfc588b041p-17
static

Referenced by exp2l().

◆ P8

const double P8 = 0x1.62c0223a5c7c7p-20
static

Referenced by exp2l().

◆ P9

const double P9 = 0x1.b52541ff59713p-24
static

Referenced by exp2l().

◆ redux

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

Referenced by exp2l().

◆ tbl

const long double tbl[TBLSIZE]
static

Referenced by exp2l().

◆ twom10000

volatile long double twom10000 = 0x1p-10000L
static

Referenced by exp2l().