mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-06 01:22:41 +00:00
[libc++] Fix typo in std::midpoint
Reviewed By: mclow.lists Differential Revision: https://reviews.llvm.org/D71525
This commit is contained in:
parent
60236fedc9
commit
6e8659c351
@ -573,7 +573,7 @@ midpoint(_Fp __a, _Fp __b) noexcept
|
||||
return __fp_abs(__a) <= __hi && __fp_abs(__b) <= __hi ? // typical case: overflow is impossible
|
||||
(__a + __b)/2 : // always correctly rounded
|
||||
__fp_abs(__a) < __lo ? __a + __b/2 : // not safe to halve a
|
||||
__fp_abs(__a) < __lo ? __a/2 + __b : // not safe to halve b
|
||||
__fp_abs(__b) < __lo ? __a/2 + __b : // not safe to halve b
|
||||
__a/2 + __b/2; // otherwise correctly rounded
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user