summaryrefslogtreecommitdiffstats
path: root/renderscript/clang-include/tgmath.h
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2013-01-07 13:59:36 -0800
committerYing Wang <wangying@google.com>2013-01-07 13:59:36 -0800
commit6099914810f6f01c79e5da88794972fa4f1439c4 (patch)
treec73440866c4cf24a1141fdb15596a9cce85e1d28 /renderscript/clang-include/tgmath.h
parent6b9d7a9239479fa6d441b98e78049956052f65f9 (diff)
downloadprebuilts_sdk-6099914810f6f01c79e5da88794972fa4f1439c4.zip
prebuilts_sdk-6099914810f6f01c79e5da88794972fa4f1439c4.tar.gz
prebuilts_sdk-6099914810f6f01c79e5da88794972fa4f1439c4.tar.bz2
Update renderscript to build AAQ07 #553727 in master-release.
Change-Id: Ida2f6cd58b8632297372665899ec8f24d0e04e9e
Diffstat (limited to 'renderscript/clang-include/tgmath.h')
-rw-r--r--renderscript/clang-include/tgmath.h23
1 files changed, 20 insertions, 3 deletions
diff --git a/renderscript/clang-include/tgmath.h b/renderscript/clang-include/tgmath.h
index 1b0b9d2..4fa1cf7 100644
--- a/renderscript/clang-include/tgmath.h
+++ b/renderscript/clang-include/tgmath.h
@@ -540,15 +540,15 @@ static long double
_TG_ATTRS
__tg_fabs(long double __x) {return fabsl(__x);}
-static float _Complex
+static float
_TG_ATTRS
__tg_fabs(float _Complex __x) {return cabsf(__x);}
-static double _Complex
+static double
_TG_ATTRS
__tg_fabs(double _Complex __x) {return cabs(__x);}
-static long double _Complex
+static long double
_TG_ATTRS
__tg_fabs(long double _Complex __x) {return cabsl(__x);}
@@ -976,6 +976,23 @@ static long double
#undef log2
#define log2(__x) __tg_log2(__tg_promote1((__x))(__x))
+// logb
+
+static float
+ _TG_ATTRS
+ __tg_logb(float __x) {return logbf(__x);}
+
+static double
+ _TG_ATTRS
+ __tg_logb(double __x) {return logb(__x);}
+
+static long double
+ _TG_ATTRS
+ __tg_logb(long double __x) {return logbl(__x);}
+
+#undef logb
+#define logb(__x) __tg_logb(__tg_promote1((__x))(__x))
+
// lrint
static long