flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > thoughts on int64 division when dvs.hi <> 0 |
Author |
|
LocoDelAssembly 09 May 2011, 14:52
idle, I'm a little bit confused, why this belongs to Compiler Internals and not Main?
|
|||
09 May 2011, 14:52 |
|
idle 10 May 2011, 06:26
i was thinking about div_64 Tomasz used
you should not ask if topic movement required |
|||
10 May 2011, 06:26 |
|
revolution 07 Jun 2011, 11:12
There are lots of ways the mathematics engine in fasm can be "improved", but for what gain?
|
|||
07 Jun 2011, 11:12 |
|
idle 22 Feb 2012, 14:50
i found bugs, see code section on wasm.ru please
http://wasm.ru/forum/viewtopic.php?pid=467241#p467241 fasm bug? Code: dq $ffff'ffff'ffff'ffff / $0000'0001'ffff'ffff load var1 dword from 0 if var1=0 display 'fasm 1.69.33 division error' end if |
|||
22 Feb 2012, 14:50 |
|
Tomasz Grysztar 22 Feb 2012, 14:57
Because fasm's expression calculator is still only 64-bit instead of at least 65, the "$ffff'ffff'ffff'ffff" equals to -1. And -1 divided by any large positive number is 0 (this is integer division here).
|
|||
22 Feb 2012, 14:57 |
|
Tomasz Grysztar 22 Feb 2012, 15:36
But, while we are at it, I managed to find a bug in some other calculation. Sign of the result was dropped sometimes and thus (-1FFFFFFFFh)/1FFFFFFFFh was giving result of 1 instead of -1. I'm fixing it right now.
|
|||
22 Feb 2012, 15:36 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.