MIPS, How to use floating point in a module?

From: ndiamond
Date: Wed Jun 02 2004 - 22:53:33 EST


Now I am told that our next target will be a MIPS-based CPU.
Looking at files under arch and asm includes for MIPS, I don't see
any equivalent of the x86 (x87, 686, etc.) functions and macros
kernel_fpu_begin, init_fpu, kernel_fpu_end, etc. Is it safe to
just barge ahead and use floating-point arithmetic operators when
the driver needs to use them?

This CPU has no opcodes for log2, exp2, sin, and cos, so it looks
like I'll have to buy one of the books that some posters here kindly
recommended, and do polynomial interpolations.

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