On 2023-01-02 14:38:51 Jeremy Nicoll wrote: > On Mon, 2 Jan 2023, at 19:38, J Leslie Turriff wrote: > > On 2023-01-02 10:32:07 Glenn Knickerbocker wrote: > >> I don't know how I've never gotten around to making this wish: > >> Sure would be nice to have a method that returned both the > >> integer quotient and the remainder without having to do the > >> division twice... > > > > Something like I've attached? > > > > Leslie > > There's no obvious saving in CPU time or anything else in doing that; > all you have done is hidden the two divisions away. It would be surely > be better if the dual division (if it HAS to be done) was done within > one method, or function (for Classic support), in the interpreter itself.
I think, then, you will need an assembler routine for that. AFAIK no high-level language has a construct to do both at once. Leslie -- Platform: Linux Distribution: openSUSE Leap 15.4 (x86_64) _______________________________________________ Oorexx-users mailing list Oorexx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-users