diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-09-16 13:40:13 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-09-16 13:40:13 -0700 |
commit | 26c497d7da95a7d3f38bfcf7868ab65378f88007 (patch) | |
tree | acf59590b4ca25e4231ec9a3817409aa90fe36cf /lib.h | |
parent | 14e48e6f78988bc323908df944fe0a534a38629d (diff) | |
download | txr-26c497d7da95a7d3f38bfcf7868ab65378f88007.tar.gz txr-26c497d7da95a7d3f38bfcf7868ab65378f88007.tar.bz2 txr-26c497d7da95a7d3f38bfcf7868ab65378f88007.zip |
Starting work on adding bit operations. The semantics is that
negative integers behave as an "infinite bit two's complement".
* arith.c (logand, logor, logxor): New functions.
* eval.c (eval_init): New intrinsic functions logand, logior, logxor.
* lib.h (logand, logor, logxor): Declared.
* mpi-patches/series: New patch, add-bitops.
* mpi-patches/add-bitops: New file.
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -471,6 +471,9 @@ val acosi(val); val atang(val); val loga(val); val expo(val); +val logand(val, val); +val logior(val, val); +val logxor(val, val); val string_own(wchar_t *str); val string(const wchar_t *str); val string_utf8(const char *str); |