Email list hosting service & mailing list manager

two fxremainder tests failing on Chicken 5 port of SRFI-143 noosphere@xxxxxx (17 Nov 2020 22:35 UTC)
Re: two fxremainder tests failing on Chicken 5 port of SRFI-143 Arthur A. Gleckler (17 Nov 2020 22:44 UTC)
Re: two fxremainder tests failing on Chicken 5 port of SRFI-143 noosphere@xxxxxx (17 Nov 2020 23:42 UTC)
Re: two fxremainder tests failing on Chicken 5 port of SRFI-143 Arthur A. Gleckler (17 Nov 2020 23:59 UTC)
Re: two fxremainder tests failing on Chicken 5 port of SRFI-143 Arthur A. Gleckler (18 Nov 2020 00:50 UTC)
Re: two fxremainder tests failing on Chicken 5 port of SRFI-143 noosphere@xxxxxx (20 Nov 2020 00:36 UTC)
Re: two fxremainder tests failing on Chicken 5 port of SRFI-143 noosphere@xxxxxx (18 Nov 2020 00:50 UTC)

Re: two fxremainder tests failing on Chicken 5 port of SRFI-143 noosphere@xxxxxx 18 Nov 2020 00:50 UTC

On Tue 17 Nov 2020 03:59:36 PM -08, Arthur A. Gleckler wrote:
>
> Can you trace fxremainder and see what it's actually calling?  When I
> looked at the code earlier, I thought it was calling remainder directly,
> but it must not be.

On line 34 in srfi-134/srfi-143.scm[1], I see:

  (rename (only (chicken fixnum)
     ...
                (fxmod fxremainder)

and running:

  %  csi
  CHICKEN
  (c) 2008-2020, The CHICKEN Team
  (c) 2000-2007, Felix L. Winkelmann
  Version 5.2.0 (rev 317468e4)
  linux-unix-gnu-x86-64 [ 64bit dload ptables ]

  Type ,? for help.
  #;1> (import trace)
  ; loading /home/me/apps/chicken/overlayfs/merged-chicken/lib/chicken/11/trace.import.so ...
  ; loading /home/me/apps/chicken/overlayfs/merged-chicken/lib/chicken/11/trace.so ...
  ; loading /home/me/apps/chicken/overlayfs/merged-chicken/lib/chicken/11/advice.so ...
  ; loading /home/me/apps/chicken/overlayfs/merged-chicken/lib/chicken/11/srfi-1.so ...
  ; loading /home/me/apps/chicken/overlayfs/merged-chicken/lib/chicken/11/miscmacros.so ...
  #;2> (import (chicken fixnum))
  ; loading /home/me/apps/chicken/overlayfs/merged-chicken/lib/chicken/11/chicken.fixnum.import.so ...
  #;3> (trace fxmod)
  ; tracing chicken.fixnum#fxmod
  #;4> (fxmod -13 4)
  [0] (chicken.fixnum#fxmod -13 4)
  [0] chicken.fixnum#fxmod -> 3
  3
  #;5>

[1] - https://github.com/diamond-lizard/srfi-143/blob/311cbb869225bd7022f74f4516b7ece9e2d79e67/srfi-143/srfi-143.scm#L34