Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

sun-lamp CVS commits



jtc
Thu Mar 16 14:14:22 EST 1995
Update of /a/cvsroot/src/lib/libc/time
In directory pain.lcs.mit.edu:/b/tmp/cvs-serv1300

Modified Files:
        localtime.c 
Log Message:
Added comment explaining why we are using a different algorithm than
what was adopted in tzcode95c to solve the problem of the first char
detzcode() extracts requiring sign extention (this is needed for
machines with 64 bit longs).

Our implementation is a bit more efficent, but requires a new macro,
SIGN_EXTEND_CHAR(), and a conditional to set it appropriately).

One minor enhancement for machines without ANSI compilers that have 32
bit longs would be to define SIGN_EXTEND_CHAR() to be the identity
macro.




Home | Main Index | Thread Index | Old Index