summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-01-29 19:07:10 -0800
committerKaz Kylheku <kaz@kylheku.com>2015-01-29 19:07:10 -0800
commita11dd30b417e1f48da573748fa4ab5fe09f0b212 (patch)
tree0f2a5852563b34861421aab59972698f0d4e6c40 /lib.h
parentd04250b7e3d809ded65b767f34baf398ca03eae1 (diff)
downloadtxr-a11dd30b417e1f48da573748fa4ab5fe09f0b212.tar.gz
txr-a11dd30b417e1f48da573748fa4ab5fe09f0b212.tar.bz2
txr-a11dd30b417e1f48da573748fa4ab5fe09f0b212.zip
* arith.c (make_ubignum): New static function.
(sign_extend): New function. * eval.c (eval_init): Register sign-extend intrinsic. * lib.h (sign_extend): Declared. * txr.1: Documented sign-extend. * tl.vim, txr.vim: Updated.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index cd753e52..511f6838 100644
--- a/lib.h
+++ b/lib.h
@@ -600,6 +600,7 @@ val logxor(val, val);
val logtest(val, val);
val lognot(val, val);
val logtrunc(val a, val bits);
+val sign_extend(val num, val nbits);
val ash(val a, val bits);
val bit(val a, val bit);
val maskv(val bits);