aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-01-11 03:25:17 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-01-11 03:25:17 +0000
commit3069dbee30e9f7aedb24bb77b13ab9de4cf1148c (patch)
treedeb347862b92f0640b0b5df6b988a14da8456bb6
parent2e6074b989bcf29b69ecd0837fcec96ea936430f (diff)
parentcecbdd39deb29723658f2750660646f82d833884 (diff)
downloadarm-optimized-routines-3069dbee30e9f7aedb24bb77b13ab9de4cf1148c.tar.gz
Stop setting WANT_ROUNDING=0. am: ef3eb23336 am: faac035047 am: cecbdd39de
Change-Id: Id582bb12f305b67430c7694da45971ff348c3c91
-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"],
}