From 0fe5cff9482bc6a11594d907128ddbcad562976c Mon Sep 17 00:00:00 2001 From: Jeremy Steward Date: Mon, 22 Apr 2024 21:54:21 -0600 Subject: [PATCH 3/3] Update svnwiki page with appropriate docs --- srfi-143.svnwiki | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/srfi-143.svnwiki b/srfi-143.svnwiki index 7f326e9..fd4be26 100644 --- a/srfi-143.svnwiki +++ b/srfi-143.svnwiki @@ -52,11 +52,9 @@ in the same way as {{(chicken fixnum}}). === Deviations from the specification -In the CHICKEN implementation, {{fx+}}, {{fx-}}, and {{fx*}} are variadic, -implemented with {{foldr}}, {{foldl}}, and {{foldr}}, respectively. For -completeness, a variadic {{fx/}} is provided as well, implemented with -{{foldl}}. It's not clear that this is much more useful than the SRFI's -{{fxquotient}}. +All procedures in this library are 2-arity wherever possible. The original +SRFI-143 document lists these procedures as variadic, but for compatibility +with {{(chicken fixnum)}} these are kept to 2-arity and re-exported. === Specification @@ -105,23 +103,23 @@ Bound to the value {{-2^w-1}}, the smallest representable fixnum. (R6RS Returns {{#t}} if obj is an exact integer within the fixnum range, and {{#f}} otherwise. -(fx=? i ...) +(fx=? i j) Semantically equivalent to {{=}}. -(fx +(fx Semantically equivalent to {{<}}. -(fx>? i ...) +(fx>? i j) Semantically equivalent to {{>}}. -(fx<=? i ...) +(fx<=? i j) Semantically equivalent to {{<=}}. -(fx>=? i ...) +(fx>=? i j) Semantically equivalent to {{>=}}. @@ -145,21 +143,21 @@ Semantically equivalent to {{odd?}}. Semantically equivalent to {{even?}}. -(fxmax i j ...) +(fxmax i j) Semantically equivalent to {{max}}. -(fxmin i j ...) +(fxmin i j) Semantically equivalent to {{min}}. ==== Basic arithmetic -(fx+ i ...) +(fx+ i j) Semantically equivalent to {{+}}. -(fx- i ...) +(fx- i j) Semantically equivalent to {{-}}. @@ -167,11 +165,11 @@ Semantically equivalent to {{-}}. Semantically equivalent to {{-}}, but accepts exactly one argument. -(fx* i ...) +(fx* i j) Semantically equivalent to {{*}}. -(fx/ i ...) +(fx/ i j) Semantically equivalent to {{(foldr quotient i rest-args)}}. @@ -243,15 +241,15 @@ are dropped for brevity and compatibility. Semantically equivalent to {{bitwise-not}}. -(fxand i ...) +(fxand i j) Semantically equivalent to {{bitwise-and}}. -(fxior i ...) +(fxior i j) Semantically equivalent to {{bitwise-ior}}. -(fxxor i ...) +(fxxor i j) Semantically equivalent to {{bitwise-xor}}. @@ -331,17 +329,17 @@ Jaffer, Taylor Campbell, and the R6RS editors. === Copyright Copyright (C) John Cowan (2016). All Rights Reserved. - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -352,6 +350,7 @@ Jaffer, Taylor Campbell, and the R6RS editors. === Version history +* 1.0.0 - Convert egg to R7RS library & convert variadic procedures to 2-arity procedures. * 0.4.1 - Fix bug due to calling fixnum procedures with wrong number of arguments * 0.4 - Implement variadic arithmetic operators, use fixnum operations internally * 0.3 - Reorganize and reduce files -- 2.43.0