Re: Extending a bit string

2018-04-24 Thread Evan Carroll
;1'::bit(1), 0), get_bit(B'1'::bit(2), 1); I'm sure it would have been substantially less confusing if integers displayed their LSB on the left after casting. I think I would have figured out what was going on *much* faster. You were right on everything in your initial respo

Re: Extending a bit string

2018-04-24 Thread Evan Carroll
eing 5 is terrifying, so you won't find any objections to the current behavior from me. -- Evan Carroll - m...@evancarroll.com System Lord of the Internets web: http://www.evancarroll.com ph: 281.901.0011

Extending a bit string

2018-04-23 Thread Evan Carroll
ger to a bit string width wider than the integer itself will sign-extend on the left. That makes sense to me. Intergers sign-extend on the left, and the behavior is currently undefined for bit->bit extensions. What say you? -- Evan Carroll - m...@evancarroll.com System Lord of the Internets