diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-03-22 10:48:00 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-03-22 10:48:00 -0700 |
commit | 1ccc6d458fbda380233019a1d80d5aff576d9d03 (patch) | |
tree | 97e9057e446ac2e19f265ebe829634b46e81f79c /txr.vim | |
parent | 946c88ae095260a816aae8e1d5eacb32e4424718 (diff) | |
download | txr-1ccc6d458fbda380233019a1d80d5aff576d9d03.tar.gz txr-1ccc6d458fbda380233019a1d80d5aff576d9d03.tar.bz2 txr-1ccc6d458fbda380233019a1d80d5aff576d9d03.zip |
Fix sqrt confusion. There must be a separate isqrt
for the integer square root.
* arith.c (sqroot_fixnum): Renamed back to isqrt_fixnum.
(sqroot): Rewritten to handle only floating-point square root.
(isqrt): New function, based on previous sqroot,
handles only integers.
* eval.c (eval_init): New intrinsic, isqrt.
* lib.h (isqrt): New declaration.
* txr.1: Doc stubs.
* txr.vim: Highlighting for isqrt.
Diffstat (limited to 'txr.vim')
-rw-r--r-- | txr.vim | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -43,7 +43,7 @@ syn keyword txl_keyword contained reverse ldiff flatten lazy-flatten syn keyword txl_keyword contained memq memql memqual tree-find some syn keyword txl_keyword contained remq remql remqual syn keyword txl_keyword contained all none eq eql equal + - * / abs trunc mod -syn keyword txl_keyword contained expt exptmod sqrt gcd +syn keyword txl_keyword contained expt exptmod sqrt isqrt gcd syn keyword txl_keyword contained floor ceil sin cos atan log syn keyword txl_keyword contained fixnump bignump integerp floatp syn keyword txl_keyword contained numberp zerop evenp oddp > |