Python cryptography, Rust, and Gentoo
Python cryptography, Rust, and Gentoo
Posted Feb 13, 2021 13:15 UTC (Sat) by mpr22 (subscriber, #60784)In reply to: Python cryptography, Rust, and Gentoo by Wol
Parent article: Python cryptography, Rust, and Gentoo
x86 floating point is (hardware defects aside) IEEE-754, floating point division by 0.0 is defined in C, and if you compile:
#include <stdio.h>
int main()
{
float f = 1.0f/0.0f;
printf("%f\n", f);
return 0;
}
with gcc or clang and link against glibc, it prints "inf".
Integer division by 0, on the other hand, is undefined under finite-width two's complement (or unsigned) arithmetic.
