Re: from where comes "__moddi3"?

From: Jan Engelhardt
Date: Sat Jul 21 2007 - 15:35:09 EST



On Jul 21 2007 23:33, Alexander Shishkin wrote:
> On 7/21/07, Robert P. J. Day <rpjday@xxxxxxxxxxxxxx> wrote:
>>
>> again, probably displaying my abject ignorance, but i wrote a
>> trivial module that tries to "var % 15", and i get:
>>
>> WARNING: "__moddi3" undefined!
> ...which comes from libgcc1 which you obviously don't want to link against.
>
> Does (var & 0x0f) not work for you?

v & 0x0F <=> v % 16



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