mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* from where comes "__moddi3"?
@ 2007-07-21 19:21 Robert P. J. Day
  2007-07-21 19:31 ` Peter Zijlstra
  2007-07-21 19:33 ` Alexander Shishkin
  0 siblings, 2 replies; 10+ messages in thread
From: Robert P. J. Day @ 2007-07-21 19:21 UTC (permalink / raw)
  To: Linux Kernel Mailing List


  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
========================================================================

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-07-21 22:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-21 19:21 from where comes "__moddi3"? Robert P. J. Day
2007-07-21 19:31 ` Peter Zijlstra
2007-07-21 19:34   ` Robert P. J. Day
2007-07-21 19:58   ` Jan-Benedict Glaw
2007-07-21 20:00     ` Peter Zijlstra
2007-07-21 19:33 ` Alexander Shishkin
2007-07-21 19:34   ` Jan Engelhardt
2007-07-21 20:00     ` Alexander Shishkin
2007-07-21 21:27       ` David Schwartz
2007-07-21 22:02         ` Arjan van de Ven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®