Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!willett!ForthNet From: ForthNet@willett.UUCP (ForthNet articles from GEnie) Newsgroups: comp.lang.forth Subject: Mathematical routines Message-ID: <264.UUL1.3#5129@willett.UUCP> Date: 14 Jan 90 16:07:48 GMT Organization: Latest Link in ForthNet Chain (Pittsburgh, PA) Lines: 15 Category 3, Topic 10 Message 31 Sun Jan 14, 1990 P.SNYDER1 at 04:24 PST Does anyone out there know how to do this: I want to compute s = a0 * b0 + a1 * b1 + ... + an * bn where n is to be determined at run time, and could be as large as 300, and the ai, bi are unsigned byte quantities, and s is to be scaled to an unsigned byte quantity. Also, I don't want to do it in floating point. It seems this should be pretty straight-forward, but I keep getting myself confused. I think Forth needs a word to detect when CARRY is set. Anyway, any input would be appreciated. Tx, .......paul ----- This message came from GEnie via willett through a semi-automated process. Report problems to: 'uunet!willett!dwp' or 'willett!dwp@gateway.sei.cmu.edu'