This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch for locale/programs/3level.h


Paul Eggert writes:
> This expression assumes twos-complement arithmetic.

Two's complete arithmetic is de facto standard in C for decades.

> But it's clearer if you replace ~0 with -1;

-1 means a negative number. ~0 means a number with all bits set.

Bruno


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]