diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-11-16 06:53:03 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-11-16 06:53:03 -0800 |
commit | b901452571285988ea4b3367c64642d2e8e0a580 (patch) | |
tree | 66d294746eef221cf816f78199e4c5a2078b7975 /share | |
parent | 57cee8154fddd7697cd8573a356910ebc9e00b6d (diff) | |
download | txr-b901452571285988ea4b3367c64642d2e8e0a580.tar.gz txr-b901452571285988ea4b3367c64642d2e8e0a580.tar.bz2 txr-b901452571285988ea4b3367c64642d2e8e0a580.zip |
math: remove redundant type checks from NUM.
* arith.c (plus, minus, neg, abso, signum, mul, trunc, mod,
floordiv, plusp, minusp, evenp, oddp, gt, lt, ge, le, numeq,
expt, exptmod, isqrt, gcd, flo_int, logand, logior, logxor,
comp_trunc, lognot, logtrunc, sign_extend, ash, bit, logcount,
tofloat, toint, width, poly, rpoly): Use the unchecked c_n
rather than c_num on quantities that are known to be of NUM
and CHR type.
* lib.h (c_n): New inline function.
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions