summaryrefslogtreecommitdiffstats
path: root/arith.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-04-21 21:26:19 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-04-21 21:26:19 -0700
commitb1726e0878b679508dda20166b04cac12213729b (patch)
tree208cc17ff9ebb6ce5862341675cf6d27749a1724 /arith.h
parentb4d9e01b4c68a995d39f7c01c43ba2aed02c968b (diff)
downloadtxr-b1726e0878b679508dda20166b04cac12213729b.tar.gz
txr-b1726e0878b679508dda20166b04cac12213729b.tar.bz2
txr-b1726e0878b679508dda20166b04cac12213729b.zip
Buffers implementation, part three: get functions.
* arith.c (unum): New function. * arith.h (unum): Declared. * buf.c (buf_get_bytes): New static function. (buf_get_i8, buf_get_u8, buf_get_i16, buf_get_u16, buf_get_i32, buf_get_u32, buf_get_i64, buf_get_u64, buf_get_char, buf_get_uchar, buf_get_short, buf_get_ushort, buf_get_int, buf_get_uint, buf_get_long, buf_get_ulong, buf_get_double): Stubs implemented.
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 f9866f8a..8961c571 100644
--- a/arith.h
+++ b/arith.h
@@ -35,6 +35,7 @@ int highest_bit(int_ptr_t n);
val normalize(val bignum);
val in_int_ptr_range(val bignum);
ucnum c_unum(val num);
+val unum(ucnum u);
val cum_norm_dist(val x);
val n_choose_k(val n, val k);
val n_perm_k(val n, val k);