mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
(SCM_MAKE_BIGNUM_TAG): New.
This commit is contained in:
parent
6c4493a045
commit
760eb0ce25
1 changed files with 5 additions and 4 deletions
|
@ -175,11 +175,12 @@
|
|||
#define SCM_BDIGITS(x) ((SCM_BIGDIG *) (SCM_CELL_WORD_1 (x)))
|
||||
#define SCM_SET_BIGNUM_BASE(n, b) (SCM_SET_CELL_WORD_1 ((n), (b)))
|
||||
#define SCM_NUMDIGS(x) ((size_t) (SCM_CELL_WORD_0 (x) >> SCM_BIGSIZEFIELD))
|
||||
#define SCM_SETNUMDIGS(x, v, sign) \
|
||||
SCM_SET_CELL_WORD_0 (x, \
|
||||
scm_tc16_big \
|
||||
#define SCM_MAKE_BIGNUM_TAG(v, sign) \
|
||||
(scm_tc16_big \
|
||||
| ((sign) ? SCM_BIGSIGNFLAG : 0) \
|
||||
| (((v) + 0L) << SCM_BIGSIZEFIELD))
|
||||
#define SCM_SETNUMDIGS(x, v, sign) \
|
||||
SCM_SET_CELL_WORD_0 (x, SCM_MAKE_BIGNUM_TAG (v, sign))
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue