summaryrefslogtreecommitdiffstats
path: root/eval.c
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 /eval.c
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 'eval.c')
-rw-r--r--eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 7f611589..16d8d7f4 100644
--- a/eval.c
+++ b/eval.c
@@ -3847,6 +3847,7 @@ void eval_init(void)
reg_fun(intern(lit("logtest"), user_package), func_n2(logtest));
reg_fun(intern(lit("lognot"), user_package), func_n2o(lognot, 1));
reg_fun(intern(lit("logtrunc"), user_package), func_n2(logtrunc));
+ reg_fun(intern(lit("sign-extend"), user_package), func_n2(sign_extend));
reg_fun(intern(lit("ash"), user_package), func_n2(ash));
reg_fun(intern(lit("bit"), user_package), func_n2(bit));
reg_fun(intern(lit("mask"), user_package), func_n0v(maskv));