On 18/07/2018 8:26 PM, Steve Smith wrote:
Nice...
So, you say 1s-complement is better than 2s-complement? Is ~15 clearer
than -16? ;-)
I say it's best to stick to the idioms of the language you're coding in :)
My "native" language is assembler, and it doesn't have an easy way to
specify the former.
Bit twiddling in C can be tricky and not as intuitive as assembler. But
it's trivial to write macros to make it easy.
sas
On Wed, Jul 18, 2018 at 4:14 AM, David Crayford <dcrayf...@gmail.com> wrote:
I certainly wouldn't encourage anybody to use negative numbers for bit
mask values!
Why not just write an aligned memory allocator which stashes an extra
pointer in a known location for easy freeing?
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN