summaryrefslogtreecommitdiffstats
path: root/mathfuncs_convert.h
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-02-15 14:26:10 -0500
committerErik Schnetter <schnetter@gmail.com>2013-02-15 14:26:10 -0500
commit01ea146f550a48107b41d4d2aa149192f3b52142 (patch)
tree78b97a04e3b62f46320fefca1935605489716873 /mathfuncs_convert.h
parent5240ff3139edade7894067b93d5630115e5293eb (diff)
downloadvecmathlib-01ea146f550a48107b41d4d2aa149192f3b52142.zip
vecmathlib-01ea146f550a48107b41d4d2aa149192f3b52142.tar.gz
Replace all assert() by VML_ASSERT()
Diffstat (limited to 'mathfuncs_convert.h')
-rw-r--r--mathfuncs_convert.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/mathfuncs_convert.h b/mathfuncs_convert.h
index 4a2a7ff..44a3aee 100644
--- a/mathfuncs_convert.h
+++ b/mathfuncs_convert.h
@@ -5,7 +5,6 @@
#include "mathfuncs_base.h"
-#include <cassert>
#include <cmath>
@@ -73,7 +72,7 @@ namespace vecmathlib {
intvec_t exponent = ilogb(x);
for (int i=0; i<intvec_t::size; ++i) {
- assert(exponent[i] >= FP::mantissa_bits);
+ VML_ASSERT(exponent[i] >= FP::mantissa_bits);
}
intvec_t ix = as_int(x) & IV(FP::mantissa_mask);
// add hidden mantissa bit
OpenPOWER on IntegriCloud