Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!sm.unisys.com!hplabs!hp-sdd!ncr-sd!ncrlnk!uunet!portal!cup.portal.com!Chuck_M_Grandgent From: Chuck_M_Grandgent@cup.portal.com Newsgroups: comp.lang.c Subject: double longs Message-ID: <14295@cup.portal.com> Date: 4 Feb 89 16:24:56 GMT Organization: The Portal System (TM) Lines: 16 I'm look for leads on "C" source for doing simple arithmetic efficiently with "double longs" - that is, I need twice the integer precision of a long, and for Intel chip architecture to boot (not a bad idea - 'to boot' Intel arch.). Reals just don't hack it for what I need to do. "dlong" add and subtract are pretty trivial, you could maintain two longs and do the carry/borrow yourself, but multiply and divide appear more difficult to do efficiently. If had "dlongs" could get nice precision (by doing appropriate scaling) without attendant complications of floating point packages. ============================================================= sun!portal!cup.portal.com!chuck_m_grandgent K1OM AEG Modicon Industrial Automation Systems Group North Andover, Mass. ========================================================