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:
commit
2b2af19b2c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue