[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: clang memory sanitizer report unsigned int overflow
- From: Sean Conner <sean@...>
- Date: Sat, 7 Jan 2023 01:09:39 -0500
It was thus said that the Great bil til once stated:
> Am Fr., 6. Jan. 2023 um 11:40 Uhr schrieb Lorenzo Donati
> <lorenzodonatibz@tiscali.it>:
> > Actually, rereading my own post and my C99 standard citation, you would
> > need ints with at least 66 bits. Shifting out all the bits is UB.
>
> (Just small side info: Controllers with non 2-exponent bit number make
> no real sense, the CPU architecture would get just too cumbersome then
Huh? I'm aware of 9-bit, 18-bit, 21-bit, 60-bit and 66-bit systems. They
were mostly built in the 60s. I'm sure there were other odd-bit systems
built as well, and it's really only in the 70s did the computer industry
collectively came to 8/16/32/64 bit systems. Even today, there are systems
where characters are larger than 8-bits (these tend to be DSP chips).
-spc