rust/library/core
Urgau 00444bab26 Round negative signed integer towards zero in iN::midpoint
Instead of towards negative infinity as is currently the case.

This done so that the obvious expectations of
`midpoint(a, b) == midpoint(b, a)` and
`midpoint(-a, -b) == -midpoint(a, b)` are true, which makes the even
more obvious implementation `(a + b) / 2` true.

https://github.com/rust-lang/rust/issues/110840#issuecomment-2336753931
2024-10-26 18:46:41 +02:00
..
benches Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
src Round negative signed integer towards zero in iN::midpoint 2024-10-26 18:46:41 +02:00
tests Round negative signed integer towards zero in iN::midpoint 2024-10-26 18:46:41 +02:00
Cargo.toml Port std library to RTEMS 2024-09-03 09:19:29 +02:00