Comment

Comment by MobiusHorizons

I would be very curious to know why such shifts would be UB as opposed to merely implementation specific.

I guess I can understand that signed shifts bump up against how the hardware represents signed numbers at the bit level, but it’s not like the assembly is unclear on any given platform.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton