Re: unresolved symbols __udivdi3 and __umoddi3

Daniel Phillips (phillips@bonn-fries.net)
Mon, 28 Jan 2002 20:17:06 +0100


On January 28, 2002 05:21 am, wrote:
> First of all I would like to thank all the people that responded to my
> mail. Unfortunately the numbers I am using are not restricted to
> powers of two so I could not simply shift the data. I have decided to
> use the div64.h solution and it seems to work well.
>
> I have looked at this header file and I do not understand the asm
> syntax.
>
> In particular the only x86 div instruction I know only returns a 32 bit
> div result. Because I don't understand the div64 header I cannot
> see how a 64 bit result is calculated.

This particular macro can't do that. However, 64bits/32bits = 64bits is
easily calculated with two 64/32 hardware divides, in assembly.

> I also tried this header in a regular application. This failed to return
> the modulus although it works in a module.
>
> Is this asm syntax documented anywhere ?

It's painful, isn't it? And no, I don't know where it's documented.

--
Daniel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/