Divide by zero?
John.Tytgat at aaug.net
Sun Jan 2 15:14:15 PST 2005
In message <4d2722b378sbellon at sbellon.de>
Stefan Bellon <sbellon at sbellon.de> wrote:
> Correct (with SharedCLibrary) is a = 1 but with UnixLib it says a = 0.
> So it looks like the division is fundamentally flawed?
Maybe a little bit too strong. _ll_sdiv and _ll_udiv are fine but
_ll_srdv and _ll_urdiv not. The 2 last onces are not the modulo
versions but reverse divisions, i.e. instead of a / b, they do b / a.
I test a little bit further on before commiting.
John Tytgat, in his comfy chair at home BASS
John.Tytgat at aaug.net ARM powered, RISC OS driven
More information about the gcc