summaryrefslogtreecommitdiff
path: root/core/pkg/tbox.pkg/inc/tbox/math
diff options
context:
space:
mode:
authorruki <[email protected]>2015-12-21 09:37:49 +0800
committerruki <[email protected]>2015-12-21 09:37:49 +0800
commit8f8f8425df4e1ce4b71099a669dd4ccc3d4a0b0f (patch)
tree3b5a397982c0d702a370c508a261353253ff2261 /core/pkg/tbox.pkg/inc/tbox/math
parent58f15142262d270d09b15e0c2648898be59b5013 (diff)
update tbox for linux
Diffstat (limited to 'core/pkg/tbox.pkg/inc/tbox/math')
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/math/fixed.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/math/fixed16.h20
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/math/fixed30.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/math/fixed6.h6
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/math/impl/fixed16_arm.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/math/impl/fixed30_arm.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/math/impl/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/math/impl/random.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/math/int32.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/math/math.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/math/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/math/random.h0
12 files changed, 13 insertions, 13 deletions
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/fixed.h b/core/pkg/tbox.pkg/inc/tbox/math/fixed.h
index 590578a73..590578a73 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/math/fixed.h
+++ b/core/pkg/tbox.pkg/inc/tbox/math/fixed.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/fixed16.h b/core/pkg/tbox.pkg/inc/tbox/math/fixed16.h
index abe99aadc..7894a26b9 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/math/fixed16.h
+++ b/core/pkg/tbox.pkg/inc/tbox/math/fixed16.h
@@ -334,7 +334,7 @@ tb_fixed16_t tb_fixed16_exp_int32(tb_fixed16_t x);
static __tb_inline__ tb_fixed16_t tb_long_to_fixed16_check(tb_long_t x)
{
// check overflow
- tb_assert_abort(x == (tb_int16_t)x);
+ tb_assert(x == (tb_int16_t)x);
// ok
return (x << 16);
@@ -342,7 +342,7 @@ static __tb_inline__ tb_fixed16_t tb_long_to_fixed16_check(tb_long_t x)
static __tb_inline__ tb_long_t tb_fixed16_to_long_check(tb_fixed16_t x)
{
// check overflow
- tb_assert_abort(x >= TB_FIXED16_MIN && x <= TB_FIXED16_MAX);
+ tb_assert(x >= TB_FIXED16_MIN && x <= TB_FIXED16_MAX);
// ok
return (x >> 16);
@@ -353,7 +353,7 @@ static __tb_inline__ tb_fixed16_t tb_fixed16_mul_check(tb_fixed16_t x, tb_fixed1
tb_hong_t v = (((tb_hong_t)x * y) >> 16);
// check overflow
- tb_assert_abort(v == (tb_int32_t)v);
+ tb_assert(v == (tb_int32_t)v);
// ok
return (tb_fixed16_t)v;
@@ -361,13 +361,13 @@ static __tb_inline__ tb_fixed16_t tb_fixed16_mul_check(tb_fixed16_t x, tb_fixed1
static __tb_inline__ tb_fixed16_t tb_fixed16_div_check(tb_fixed16_t x, tb_fixed16_t y)
{
// check
- tb_assert_abort(y);
+ tb_assert(y);
// done
tb_hong_t v = ((((tb_hong_t)x) << 16) / y);
// check overflow
- tb_assert_abort(v == (tb_int32_t)v);
+ tb_assert(v == (tb_int32_t)v);
// ok
return (tb_fixed16_t)v;
@@ -378,7 +378,7 @@ static __tb_inline__ tb_fixed16_t tb_fixed16_sqre_check(tb_fixed16_t x)
tb_hong_t v = (((tb_hong_t)x * x) >> 16);
// check overflow
- tb_assert_abort(v == (tb_int32_t)v);
+ tb_assert(v == (tb_int32_t)v);
// ok
return (tb_fixed16_t)v;
@@ -389,7 +389,7 @@ static __tb_inline__ tb_fixed16_t tb_fixed16_imul_check(tb_fixed16_t x, tb_long_
tb_hong_t v = ((tb_hong_t)x * y);
// check overflow
- tb_assert_abort(v == (tb_int32_t)v);
+ tb_assert(v == (tb_int32_t)v);
// ok
return (tb_fixed16_t)v;
@@ -397,7 +397,7 @@ static __tb_inline__ tb_fixed16_t tb_fixed16_imul_check(tb_fixed16_t x, tb_long_
static __tb_inline__ tb_fixed16_t tb_fixed16_idiv_check(tb_fixed16_t x, tb_long_t y)
{
// check
- tb_assert_abort(y);
+ tb_assert(y);
// ok
return x / y;
@@ -408,7 +408,7 @@ static __tb_inline__ tb_fixed16_t tb_fixed16_imuldiv_check(tb_fixed16_t x, tb_lo
tb_hong_t v = ((tb_hong_t)x * y) / z;
// check overflow
- tb_assert_abort(v == (tb_int32_t)v);
+ tb_assert(v == (tb_int32_t)v);
// ok
return (tb_fixed16_t)v;
@@ -419,7 +419,7 @@ static __tb_inline__ tb_fixed16_t tb_fixed16_imulsub_check(tb_fixed16_t x, tb_lo
tb_hong_t v = ((tb_hong_t)x * y) - z;
// check overflow
- tb_assert_abort(v == (tb_int32_t)v);
+ tb_assert(v == (tb_int32_t)v);
// ok
return (tb_fixed16_t)v;
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/fixed30.h b/core/pkg/tbox.pkg/inc/tbox/math/fixed30.h
index 41965701a..41965701a 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/math/fixed30.h
+++ b/core/pkg/tbox.pkg/inc/tbox/math/fixed30.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/fixed6.h b/core/pkg/tbox.pkg/inc/tbox/math/fixed6.h
index 0703e2b0d..453e4b6d0 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/math/fixed6.h
+++ b/core/pkg/tbox.pkg/inc/tbox/math/fixed6.h
@@ -151,7 +151,7 @@ static __tb_inline__ tb_fixed6_t tb_long_to_fixed6_check(tb_long_t x)
static __tb_inline__ tb_long_t tb_fixed6_to_int_check(tb_fixed6_t x)
{
// check overflow
- tb_assert_abort(x >= TB_FIXED6_MIN && x <= TB_FIXED6_MAX);
+ tb_assert(x >= TB_FIXED6_MIN && x <= TB_FIXED6_MAX);
// ok
return (x >> 6);
@@ -163,7 +163,7 @@ static __tb_inline__ tb_fixed6_t tb_fixed6_mul_inline(tb_fixed6_t x, tb_fixed6_t
tb_hong_t v = (((tb_hong_t)x * y) >> 6);
// check overflow
- tb_assert_abort(v == (tb_int32_t)v);
+ tb_assert(v == (tb_int32_t)v);
// ok
return (tb_fixed16_t)v;
@@ -171,7 +171,7 @@ static __tb_inline__ tb_fixed6_t tb_fixed6_mul_inline(tb_fixed6_t x, tb_fixed6_t
static __tb_inline__ tb_fixed16_t tb_fixed6_div_inline(tb_fixed6_t x, tb_fixed6_t y)
{
// check
- tb_assert_abort(y);
+ tb_assert(y);
// no overflow? compute it fastly
if (x == (tb_int16_t)x) return (x << 16) / y;
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/impl/fixed16_arm.h b/core/pkg/tbox.pkg/inc/tbox/math/impl/fixed16_arm.h
index 2a84fca64..2a84fca64 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/math/impl/fixed16_arm.h
+++ b/core/pkg/tbox.pkg/inc/tbox/math/impl/fixed16_arm.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/impl/fixed30_arm.h b/core/pkg/tbox.pkg/inc/tbox/math/impl/fixed30_arm.h
index 68ea25f26..68ea25f26 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/math/impl/fixed30_arm.h
+++ b/core/pkg/tbox.pkg/inc/tbox/math/impl/fixed30_arm.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/impl/prefix.h b/core/pkg/tbox.pkg/inc/tbox/math/impl/prefix.h
index 55e9f3aff..55e9f3aff 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/math/impl/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/math/impl/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/impl/random.h b/core/pkg/tbox.pkg/inc/tbox/math/impl/random.h
index c73accf88..c73accf88 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/math/impl/random.h
+++ b/core/pkg/tbox.pkg/inc/tbox/math/impl/random.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/int32.h b/core/pkg/tbox.pkg/inc/tbox/math/int32.h
index b51d425a3..b51d425a3 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/math/int32.h
+++ b/core/pkg/tbox.pkg/inc/tbox/math/int32.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/math.h b/core/pkg/tbox.pkg/inc/tbox/math/math.h
index 9eef102c4..9eef102c4 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/math/math.h
+++ b/core/pkg/tbox.pkg/inc/tbox/math/math.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/prefix.h b/core/pkg/tbox.pkg/inc/tbox/math/prefix.h
index e42d4e57a..e42d4e57a 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/math/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/math/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/random.h b/core/pkg/tbox.pkg/inc/tbox/math/random.h
index f21a364ee..f21a364ee 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/math/random.h
+++ b/core/pkg/tbox.pkg/inc/tbox/math/random.h