summaryrefslogtreecommitdiffstats
path: root/sysif.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-01-25 07:06:05 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-01-25 07:06:05 -0800
commit8fe261d344eb7607ffbe05713bd808cd1d766e46 (patch)
tree71087ef24f5655e451a5de1aedaa6e368ab20421 /sysif.c
parent66c305a07d3e485a8e1212ef7bb296fc8464b7ac (diff)
downloadtxr-8fe261d344eb7607ffbe05713bd808cd1d766e46.tar.gz
txr-8fe261d344eb7607ffbe05713bd808cd1d766e46.tar.bz2
txr-8fe261d344eb7607ffbe05713bd808cd1d766e46.zip
itypes: take advantage of double_intptr_t.
If double_intptr_t is at least 64 bits wide (which is always going to be true) we can take advantage of it. * itypes.c (c_i64, c_u64): Provide implementations that use the new dbl_intptr_t and dbl_uintptr_t infrastructure. The fallback implementation that uses ash and logior is basically not used now. (num_64, unum_64): New functions for obtaining a Lisp value from a 64 bit number, abstracting whether this is done via the cnum or dbl_cnum route. * itypes.h (u64_t, i64_t): Define in terms of double_uintptr_t and double_intptr_t, if no other 64 bit type is available. (num_64, unum_64): Declared.
Diffstat (limited to 'sysif.c')
0 files changed, 0 insertions, 0 deletions