diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-01-29 19:07:10 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-01-29 19:07:10 -0800 |
commit | a11dd30b417e1f48da573748fa4ab5fe09f0b212 (patch) | |
tree | 0f2a5852563b34861421aab59972698f0d4e6c40 /eval.c | |
parent | d04250b7e3d809ded65b767f34baf398ca03eae1 (diff) | |
download | txr-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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)); |