WARNING: "__moddi3" ... undefined!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  i just tried to use the % operator to calculate a remainder, and i
got the above error message.  this happened when i tried to use a
modulus of 15.

  the same expression worked fine when i used a modulus of 16, so i'm
assuming the latter operation was optimized to just use a bit mask,
while using 15 required an actual call to __moddi3, which failed.

  so how do i get that feature?  i've seen kernel code that uses
non-power-of-2 moduli, so it's obviously doable.  am i forgetting to
include the proper header file?  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 an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux