3 ms·
FWIW, if you slog through it, you’ll find the C standard describes it in exactly that way :) E.g. in the latest public draft[1] 6.2.6.2p2: > If the sign bit is
by mananaysiempre 3y ago
FWIW, if you slog through it, you’ll find the C standard describes it in exactly that way :) E.g. in the latest public draft[1] 6.2.6.2p2:
> If the sign bit is zero, it shall not affect the resulting value. If the sign bit is one, it has value −(2^{N−1}).
[1] https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3096.pdf https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3096.pdf