2 ms·
That's wrong, actually. It uses sign-magnitude internally, it just supports various bit-related operations as-if it were two's complement. https://github.com/o
by o11c 3y ago
That's wrong, actually. It uses sign-magnitude internally, it just supports various bit-related operations as-if it were two's complement.
https://github.com/openjdk/jdk/blob/28026434f74726d72857e781b8f1c3d12aba9125/src/java.base/share/classes/java/math/BigInteger.java#L173 https://github.com/openjdk/jdk/blob/28026434f74726d72857e781...