lkml.org 
[lkml]   [2002]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: unresolved symbols __udivdi3 and __umoddi3
    On Jan 25, 2002  06:31 -0000, simon@baydel.com wrote:
    > I am writing a module and would like to perform arithmetic on long
    > long variables. When I try to do this the module does not load due
    > to the unresolved symbols __udivdi3 and __umoddi3. I notice these
    > are normally defined in libc. Is there any way I can do this in a
    > kernel module.

    Normally you do not need to do 64-bit arithmetic in the kernel. You
    normally use power-of-2 values, and then shift/mask to get the results
    you want.

    What is it exactly that you need to do?

    Cheers, Andreas
    --
    Andreas Dilger
    http://sourceforge.net/projects/ext2resize/
    http://www-mddsp.enel.ucalgary.ca/People/adilger/

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

    \
     
     \ /
      Last update: 2005-03-22 13:15    [W:0.044 / U:0.188 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site