Files
rust/library
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
..
2024-08-29 12:13:19 -07:00
2024-07-28 14:46:29 -04:00
2024-10-10 10:16:16 +00:00
2024-10-19 11:47:43 -04:00