summaryrefslogtreecommitdiffstats
path: root/mathfuncs_base.h
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-02-16 23:37:38 -0500
committerErik Schnetter <schnetter@gmail.com>2013-02-16 23:37:38 -0500
commit68fc04ed1826328d357a7c6402b10ae89aa8f059 (patch)
treefe290c5ba3cb6744b403bda6a82c6b8fd0ed7628 /mathfuncs_base.h
parent3dd2cd307b3795e7061fa1ff715903764b35df61 (diff)
downloadvecmathlib-68fc04ed1826328d357a7c6402b10ae89aa8f059.zip
vecmathlib-68fc04ed1826328d357a7c6402b10ae89aa8f059.tar.gz
Add cbrt, hypot, trunc; rename scalbn to ldexp
Diffstat (limited to 'mathfuncs_base.h')
-rw-r--r--mathfuncs_base.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/mathfuncs_base.h b/mathfuncs_base.h
index 30f8321..c46824e 100644
--- a/mathfuncs_base.h
+++ b/mathfuncs_base.h
@@ -54,6 +54,7 @@ namespace vecmathlib {
static intvec_t vml_convert_int(realvec_t x);
static realvec_t vml_floor(realvec_t x);
static realvec_t vml_round(realvec_t x);
+ static realvec_t vml_trunc(realvec_t x);
// fabs
static realvec_t vml_copysign(realvec_t x, realvec_t y);
@@ -67,7 +68,7 @@ namespace vecmathlib {
static boolvec_t vml_isinf(realvec_t x);
static boolvec_t vml_isnan(realvec_t x);
static boolvec_t vml_isnormal(realvec_t x);
- static realvec_t vml_scalbn(realvec_t x, intvec_t n);
+ static realvec_t vml_ldexp(realvec_t x, intvec_t n);
static boolvec_t vml_signbit(realvec_t x);
// exp
@@ -101,6 +102,8 @@ namespace vecmathlib {
static realvec_t vml_tanh(realvec_t x);
// sqrt
+ static realvec_t vml_cbrt(realvec_t x);
+ static realvec_t vml_hypot(realvec_t x, realvec_t y);
static realvec_t vml_rsqrt(realvec_t x);
static realvec_t vml_sqrt(realvec_t x);
};
OpenPOWER on IntegriCloud