lkml.org 
[lkml]   [2000]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: 64 bit divide/mod in 2.4.0-test5
From
Date
>>>>> "Jeff" == Jeff V Merkey <jmerkey@timpanogas.com> writes:

Jeff> I am seeing __idiv3 and __imod3 unresolved externals if I
Jeff> attempt the following within a kernel modules:

Jeff> (long long) val / (long) val1;

Jeff> and

Jeff> (long long) val % (long) val1;

Jeff> Is there a compiler switch somewhere to forced the compiler to
Jeff> inline this code for 64-bit divides and modulo operations or
Jeff> include it from a macro library somewhere for IA32 systems that
Jeff> want to support 64-bit filesystem math without being like broken
Jeff> NT and needing stupid kernel library functions to do this?

Well you are seeing those because it's deprecated, you should use a
shift operator instead if in any way possible.

Jes

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

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:1.534 / U:0.688 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site