summaryrefslogtreecommitdiffstats
path: root/arith.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-03-30 08:48:48 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-03-30 08:48:48 -0700
commit06021c4b490ff237bf7ef13ab0f7bce0e5ef11be (patch)
treeafb7d4fc2156df0ec3d7b23681586654be6365df /arith.h
parente819894211d50c40ac7c7519528aa6f62940c6d2 (diff)
downloadtxr-06021c4b490ff237bf7ef13ab0f7bce0e5ef11be.tar.gz
txr-06021c4b490ff237bf7ef13ab0f7bce0e5ef11be.tar.bz2
txr-06021c4b490ff237bf7ef13ab0f7bce0e5ef11be.zip
u-d-arithmetic: proper treatment of ceil & round.
* arith.c (r_ceil_s, r_round_s): New symbol variables. (ceildiv, roundiv): Route binary cases involving struts directly to binary methods so the object is responsible for the complete implementation. (arith_init): Initialize r_ceil_s and r_round_s. * tests/016/ud-arith.tl (numbase): Binary methods added for ceil and round. Test cases added. * txr.1: Descriptions for binary ceil and round methods added; Notes about non-existence of binary methods removed from unary ceil and round removed.
Diffstat (limited to 'arith.h')
0 files changed, 0 insertions, 0 deletions