summaryrefslogtreecommitdiffstats
path: root/mpi/mpi-types.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-01-25 06:59:29 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-01-25 06:59:29 -0800
commit66c305a07d3e485a8e1212ef7bb296fc8464b7ac (patch)
tree65f91721ae512480ea4df6b9f7f493b35eab6660 /mpi/mpi-types.h
parentbc94bb205b91ab9f93879a7bd1339a641ffcbecd (diff)
downloadtxr-66c305a07d3e485a8e1212ef7bb296fc8464b7ac.tar.gz
txr-66c305a07d3e485a8e1212ef7bb296fc8464b7ac.tar.bz2
txr-66c305a07d3e485a8e1212ef7bb296fc8464b7ac.zip
Extend infrastructure for double_intptr_t.
We support an unsigned version of the type, and add functions for converting between Lisp values and both types. * arith.c (bignum_dbl_uipt): New function, unsigned companion to existing bignum_dbl_ipt. (c_dbl_num, c_dbl_unum): New functions. * arith.h (bignum_dbl_uipt, c_dbl_num, c_dbl_unum): Declared. * configure (superulong_t, SIZEOF_DOUBLE_INTPTR, DOUBLE_INTPTR_MAX, DOUBLE_INTPTR_MIN, DOUBLE_UINTPTR_MAX, double_uintptr_t): New definitions going into config.h. * lib.h (dbl_cnum, dbl_ucnum): New typedefs: double-sized analogs of cnum and ucnum. * mpi/mpi.c (mp_set_double_uintptr, mp_get_double_uintptr, mp_get_double_intptr): New functions. (s_mp_in_big_range): New static function. (mp_in_double_intptr_range, mp_in_double_uintptr_range): New functions. * mpi/mpi.h (mp_set_double_uintptr, mp_get_double_intptr, mp_get_double_uintptr, mp_in_double_intptr_range, mp_in_double_uintptr_range): Declared.
Diffstat (limited to 'mpi/mpi-types.h')
0 files changed, 0 insertions, 0 deletions