Thread: Large numbers

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,318
    Yikes indeed.

    I suggest taking a look at the bigint class on my website (link is in my sig; See the useful classes page). It works in basically the same way 64bit math operations are emulated on a 32-bit processor, using two-complement numbers of arbitrary size. Memory layout is identical to what you would expect from a native type of the specified size.
    It even has a factorial function built-in!

    Darryl, you might want to check it out too. I see you used Duff's Device in yours, btw.
    Last edited by iMalc; 06-28-2007 at 01:27 AM.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to deal wth large numbers
    By bvgsrs in forum C++ Programming
    Replies: 2
    Last Post: 06-18-2007, 06:16 AM
  2. Handling Large Numbers
    By Xzyx987X in forum C Programming
    Replies: 2
    Last Post: 05-03-2004, 02:33 PM
  3. Using really big numbers!
    By Machewy in forum C++ Programming
    Replies: 11
    Last Post: 02-26-2004, 10:49 AM
  4. Help needed with VERY large numbers.
    By jwarner in forum C++ Programming
    Replies: 4
    Last Post: 01-18-2004, 12:01 PM
  5. A (complex) question on numbers
    By Unregistered in forum C++ Programming
    Replies: 8
    Last Post: 02-03-2002, 06:38 PM