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

LBL c
MOD
LASTX
X<>Y
X\=0? ("not equal to zero?")
GTO c
+
RTN

Instructions: Same.
Output: GCD is returned in X.

<0|ΙΈ|0>
-Joe-
Visit this user's website 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)