Merge "arm64: fix fesetround()." am: fbabf08035

Original change: https://android-review.googlesource.com/c/platform/bionic/+/2262401

Change-Id: I9fc6fa2944b94940c5a77a2b8349461266041ef2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2022-10-19 21:15:56 +00:00 committed by Automerger Merge Worker
commit 2b2af19b2c

View file

@ -111,7 +111,7 @@ int fegetround(void) {
}
int fesetround(int round) {
if (round < FE_TONEAREST || round > FE_UPWARD) return -1;
if (round < FE_TONEAREST || round > FE_TOWARDZERO) return -1;
fpu_control_t fpcr;
__get_fpcr(fpcr);
fpu_control_t new_fpcr = fpcr & ~(FE_TOWARDZERO << FPCR_RMODE_SHIFT);