Re: 64 bit divide/mod in 2.4.0-test5

From: Maciej W. Rozycki (macro@ds2.pg.gda.pl)
Date: Fri Aug 04 2000 - 04:18:49 EST


On Thu, 3 Aug 2000, Jeff V. Merkey wrote:

> I am seeing __idiv3 and __imod3 unresolved externals if I attempt the
> following within a kernel modules:
>
> (long long) val / (long) val1;
>
> and
>
> (long long) val % (long) val1;

 Hmm, for just a 64-bit by 32-bit division for a 32-bit host you might
consider the macro that's available in <asm/div64.h>.

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

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



This archive was generated by hypermail 2b29 : Mon Aug 07 2000 - 21:00:12 EST