[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0707211516480.6972@localhost.localdomain>
Date: Sat, 21 Jul 2007 15:21:25 -0400 (EDT)
From: "Robert P. J. Day" <rpjday@...dspring.com>
To: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: from where comes "__moddi3"?
again, probably displaying my abject ignorance, but i wrote a
trivial module that tries to "var % 15", and i get:
WARNING: "__moddi3" undefined!
and, not surprisingly, when i try to insmod:
insmod: error inserting 'seq.ko': -1 Unknown symbol in module
(using 16 rather than 15 works fine, as i assume that the modulus
call is simply replaced by an optimized bitwise comparison.)
so ... from where comes __moddi3? i know there are places in the
kernel source tree that do non-power-of-2 moduli, and they work fine,
no? thanks.
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists