Re: How to use floating point in a module?

From: H. Peter Anvin
Date: Tue Jun 01 2004 - 15:57:50 EST


Followup to: <200406010038.i510cxk23507@xxxxxxxxxxxxxxxxxxxxx>
By author: ndiamond@xxxxxxxxxxxxx
In newsgroup: linux.dev.kernel
>
> (The CPU is an i686. I'll have to look up its opcodes and see if its
> hardware will come close enough for everything the driver needs. If it
> doesn't, I'll buy one of the books that some others kindly recommended
> and do polynomial approximations.) (By the way the driver is being
> ported from VxWorks, where it seems that the kernel can do floating
> point including trig, logarithms, etc.)
>

On x86 (more specifically, on x87) if you can do it at all then you
can do them all. All that really means is that the fp library is in
microcode on x87.

-hpa

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