Re: Double or float in kernel modules

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 26 Apr 1999 00:46:09 +0100 (BST)


> Can "double" or "float" be used in kernel modules ?

Not without a lot of jumping through hoops.

> Is there a significan performance penalty in using them inside
> the kernel?

You need to save the floating point state if you do this, you also need
to handle FPUless machines (the x86 fpu emulator wont handle kernel space)
and you may need to do further work for non x86

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