21 Mar
2022
21 Mar
'22
11:17 a.m.
On Mon, Mar 21, 2022, at 4:53 AM, thutt@harp-project.com wrote:
Joerg writes:
{32} will be translated to (0x1u << 32)
I‘m not a C specialist, but shouldn‘t it read (0x1ull << 32)
It varies from compiler to compiler. With gcc, this will facilitate shifting more than 31 bits.
But, shifting more than the number of bits in an integer is entering into 'undefined behavior' (or is it 'implementation defined') territory.
-- I have never met a beet which I like.
Taylor Hutt? The Oberon-2 paladin? :-)