aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-01-11 03:12:59 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-01-11 03:12:59 +0000
commitcecbdd39deb29723658f2750660646f82d833884 (patch)
treedeb347862b92f0640b0b5df6b988a14da8456bb6
parent0c6691868931ae5f7b89a89edcdd5a4e80b6453c (diff)
parentfaac035047a885c5661bf09e8bc0dd45924f341c (diff)
downloadarm-optimized-routines-cecbdd39deb29723658f2750660646f82d833884.tar.gz
Stop setting WANT_ROUNDING=0. am: ef3eb23336 am: faac035047
Change-Id: I7d5b336ff6057342be5c275a4d6c953ef37eb3ae
-rwxr-xr-xAndroid.bp16
1 files changed, 12 insertions, 4 deletions
diff --git a/Android.bp b/Android.bp
index 33b21ec..04831a4 100755
--- a/Android.bp
+++ b/Android.bp
@@ -5,15 +5,23 @@ cc_defaults {
"-Werror",
"-Wno-unused-parameter",
"-O2",
+ "-ffp-contract=fast",
+ "-fno-math-errno",
+
+ // bionic configuration.
+
// We're actually implementing bionic here, so we don't want <math.h>
// to try to be helpful by renaming long double routines.
"-D__BIONIC_LP32_USE_LONG_DOUBLE",
- "-DWANT_ROUNDING=0",
+ "-DFLT_EVAL_METHOD=0",
+
+ // arm-optimized-routines configuration.
+
+ // BSD libm doesn't set errno, and bionic was based on the BSDs.
+ // https://github.com/ARM-software/optimized-routines/issues/16#issuecomment-572009659
"-DWANT_ERRNO=0",
+ // TODO: we will want the SVE code in future, but it's not ready yet.
"-DWANT_VMATH=0",
- "-DFLT_EVAL_METHOD=0",
- "-ffp-contract=fast",
- "-fno-math-errno",
],
local_include_dirs: ["math/include"],
}