flat assembler
Message board for the users of flat assembler.

Index > DOS > Arithmetic with big numbers

Author
Thread Post new topic Reply to topic
alexa



Joined: 21 Apr 2006
Posts: 8
alexa 22 Apr 2006, 08:02
How write arithmetic operation(addition,subtraction,multiple,divide,modulo) for big numbers?(length operand more than 2048 bit)
Post 22 Apr 2006, 08:02
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 22 Apr 2006, 09:27
addition and subtraction are simple, look at adc and sbb instructions. multiplying is harder, there are few common algos how to do it. and dividing is hell. modulo is if course dividee - divider*(dividee / divider), wher "/" is ours whole-number division without remainder
Post 22 Apr 2006, 09:27
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Borsuc



Joined: 29 Dec 2005
Posts: 2465
Location: Bucharest, Romania
Borsuc 22 Apr 2006, 09:32
I'm also a bit interested in doing manual multiplication and division. vid, do you know some links around. that would be very helpful. thanks in advance Very Happy
Post 22 Apr 2006, 09:32
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 22 Apr 2006, 12:40
Post 22 Apr 2006, 12:40
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2139
Location: Estonia
Madis731 22 Apr 2006, 13:52
My program can do multiplications rather quickly, but its main purpose is powers like "1234 to the power of 5678". I started to look on the subject of Fourier Transforming the results, but no success, I just don't get it Sad
Check out the Projects section for the program.
Post 22 Apr 2006, 13:52
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 23 Apr 2006, 21:04
yes, FT is pretty complicated to comprehend, until you comprehend it Smile
Post 23 Apr 2006, 21:04
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.