Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Clang emits memcpy for std::swap, which can introduce undefined behavior. Parent comment
Hard or impossible to give _performant_ defined behavior for.
> As an example, shifting left by more bits than the size of the value gives different results on several different platforms.
You could, for instance, always mod the shift by the word size, but possibly at a significant cost.
There are no comments on this comment yet.
Hard or impossible to give _performant_ defined behavior for.
> As an example, shifting left by more bits than the size of the value gives different results on several different platforms.
You could, for instance, always mod the shift by the word size, but possibly at a significant cost.