News for hackers. Stuff that matters.
Re:Rust, Zig, and the Futility of “Replacing” C by ghoward on Sunday February 28, 2021 @09:52PM (#26299227)
You implement it by using unsigned arithmetic, then checking that the sign bit flipped. See https://git.yzena.com/Yzena/Yc/src/branch/master/include/yc/... .

It's a bit more subtle than that, but that is completely devoid of Undefined, Unspecified, and Implementation-Defined Behavior.

There are no comments on this comment yet.