Embedded Artistry Framework
Embedded Systems C++ Framework
Macros | Functions | Variables
s_exp2l.c File Reference
#include "cdefs-compat.h"
#include <float.h>
#include <stdint.h>
#include "bsd_cdefs.h"
#include "amd64/bsd_ieeefp.h"
#include <openlibm_math.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 const long double huge = 0x1p10000L
 
static volatile long double twom10000 = 0x1p-10000L
 
static const double redux = 0x1.8p63 / TBLSIZE
 
static const double P1 = 0x1.62e42fefa39efp-1
 
static const double P2 = 0x1.ebfbdff82c58fp-3
 
static const double P3 = 0x1.c6b08d7049fap-5
 
static const double P4 = 0x1.3b2ab6fba4da5p-7
 
static const double P5 = 0x1.5d8804780a736p-10
 
static const double P6 = 0x1.430918835e33dp-13
 
static const double tbl [TBLSIZE *2]
 

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

◆ huge

const long double huge = 0x1p10000L
static

Referenced by exp2l().

◆ P1

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

Referenced by exp2l().

◆ P2

const double P2 = 0x1.ebfbdff82c58fp-3
static

Referenced by exp2l().

◆ P3

const double P3 = 0x1.c6b08d7049fap-5
static

Referenced by exp2l().

◆ P4

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

Referenced by exp2l().

◆ P5

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

Referenced by exp2l().

◆ P6

const double P6 = 0x1.430918835e33dp-13
static

Referenced by exp2l().

◆ redux

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

Referenced by exp2l().

◆ tbl

const double tbl[TBLSIZE *2]
static

Referenced by exp2l().

◆ twom10000

volatile long double twom10000 = 0x1p-10000L
static

Referenced by exp2l().