3 ms·
It's supported by all major compilers, but some may have buggy implementations if you try to target a non-two's-complement architecture. Clearly they need to
by dllthomas 11y ago
It's supported by all major compilers, but some may have buggy implementations if you try to target a non-two's-complement architecture. Clearly they need to fix those bugs!
- CamperBob2 11y agoRight, the tilde operator is supported, but the math trick in question only works on a twos-complement machine. So it's non-portable in the sense that the language spec doesn't guarantee a particular behavior.
- dllthomas 11y agoYup. If it wasn't clear, my comment above was a joke :-P