flat assembler
Message board for the users of flat assembler.

Index > Windows > Long number

Author
Thread Post new topic Reply to topic
zolkefli



Joined: 05 Mar 2005
Posts: 12
zolkefli
Could someone show me the simpliest code to devide a very long number. For example:
129837817238971289378917329871273 / 726376236127367126376123621
How do we compute it. Let say we put it in 16 byte for each number.
Thanks in advance..
Post 05 Mar 2005, 12:12
View user's profile Send private message Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Matrix
hy
the first number nearly fits in windows calculator in decimal,
if 80 bit is enough then you can use FPU,
otherwise, MMX, SSE ? 128 Bit

if you wanna divide strings, it will be very slow, you have to make it in asm, you know, like you do it on paper:
130 : 7 = 18.571428*571428* ... 571428*571428*571428*571428
60
40
50
10
30
20
60
40
50
10
30
20
60

i don't have such function though

will it be for some arbitary math calculator?
Post 05 Mar 2005, 13:11
View user's profile Send private message Visit poster's website Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2140
Location: Estonia
Madis731
Check my site
http://www.itcollege.ee/~mkalme/
its in Estonian so shortcut to my Power program
http://www.itcollege.ee/~mkalme/ConvDLG.7z
Post 07 Mar 2005, 17:37
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger 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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.