diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-10-16 19:01:26 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-10-16 19:01:26 -0700 |
commit | 499f04dc4f9f864071d6ff7e75c9cbec60e2fd12 (patch) | |
tree | a088c450568622b02c46dbce6cec053861c04569 /unwind.c | |
parent | b2dfc50f1c98417166d647538d7d5ecd6178dd4c (diff) | |
download | txr-499f04dc4f9f864071d6ff7e75c9cbec60e2fd12.tar.gz txr-499f04dc4f9f864071d6ff7e75c9cbec60e2fd12.tar.bz2 txr-499f04dc4f9f864071d6ff7e75c9cbec60e2fd12.zip |
* arith.c (gcd): Fix semantics. If either operand is
zero, return the other operand.
(lcm): New function.
* eval.c (eval_init): Retarget registration of gcd to
variable argument gcdv function. Register lcm.
* lib.c (gcdv, lcmv): New functions.
* lib.h (gcdv, lcm, lcmv): Declared.
* txr.1: Re-document gcd with coverage of lcm.
* txr.vim: Regenerated.
Diffstat (limited to 'unwind.c')
0 files changed, 0 insertions, 0 deletions