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 /lib.h | |
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 'lib.h')
-rw-r--r-- | lib.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |