Y
Hacker News
new
|
ask
|
show
|
jobs
by
alberto-m
134 days ago
> one could make the case for true being all bits set
Historical note: this was the case in QBasic, where true was defined as -1.
2 comments
Joker_vD
134 days ago
There, apparently, were quite a number of ISAs where checking the sign bit was more convenient (performant?) than checking (in)equality with zero.
link
jabl
133 days ago
Some Fortran compilers also did this. MS Powerstation Fortran at least, IIRC.
link