Post Reply 
(42S) GCD
07-12-2016, 06:23 AM
Post: #3
RE: (42) GCD
(07-12-2016 03:48 AM)Joe Horn Wrote:  As others have recently posted in parallel discussions, the GCD routine in the PPC ROM is probably the shortest and fastest possible:

Also posted in the other GCD thread:
You can get it one step shorter (but with the same byte count):

Code:
LBL d
STO Z
MOD
X≠0?
GTO d
+
END

Note to HP42 users: STO Z is STO ST Z.

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(42S) GCD - Eddie W. Shore - 07-10-2016, 01:39 AM
RE: (42) GCD - Joe Horn - 07-12-2016, 03:48 AM
RE: (42) GCD - Dieter - 07-12-2016 06:23 AM
RE: (42S) GCD - Logan - 02-13-2018, 09:57 PM
RE: (42) GCD - Paul Dale - 07-12-2016, 06:40 AM
RE: (42) GCD - Dieter - 07-13-2016, 09:59 AM
RE: (42S) GCD - Csaba Tizedes - 08-17-2017, 02:23 PM



User(s) browsing this thread: 1 Guest(s)