summaryrefslogtreecommitdiffstats
path: root/arith.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-12-23 21:57:33 -0800
committerKaz Kylheku <kaz@kylheku.com>2011-12-23 21:57:33 -0800
commitfb2f85cff8dab72c101c48f48c69ffc6ef35204d (patch)
treeffffed3ed085c9363f5795434346f2591e8850d2 /arith.h
parentf7a72e6e10d5f69ff9bb55ebf480e99e65727e6e (diff)
downloadtxr-fb2f85cff8dab72c101c48f48c69ffc6ef35204d.tar.gz
txr-fb2f85cff8dab72c101c48f48c69ffc6ef35204d.tar.bz2
txr-fb2f85cff8dab72c101c48f48c69ffc6ef35204d.zip
* arith.c (highest_bit): Changing to external linkage.
* arith.h (highest_bit): Declared. * rand.c (random): Rewrote using different algorithm which ensures even distribution, and avoids doing a bignum mod operation.
Diffstat (limited to 'arith.h')
-rw-r--r--arith.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arith.h b/arith.h
index 1b4026b1..b5ad0472 100644
--- a/arith.h
+++ b/arith.h
@@ -25,5 +25,6 @@
*/
val make_bignum(void);
+int highest_bit(int_ptr_t n);
val normalize(val bignum);
void arith_init(void);