Query about Float Point Operation

Russell King - ARM Linux linux at arm.linux.org.uk
Mon Mar 29 04:11:32 EDT 2010


On Mon, Mar 29, 2010 at 10:52:50AM +0530, Rajanikanth H.V wrote:
> 2010/3/23 胡杨树 <914059751 at qq.com>:
> > Hi , guys
> > I want to do float point operations in kernel like the following,
> >
> > int foo(double d)
> > {
> >
> > return (int)d*d;
> >
> > }
> >
> > while compiling output error msg like following:
> > cannt find eabi_dmul  balabla。。。。。。
> >
> > May I ask any possibility of use float point operation in the kernel space?
> > Any hints/doc would be appreciated!
> I do not know how are you compiling the required function.
> Use hardware floating point support. If your target SOC support.

And if you do this, you end up corrupting the FP state for user
applications.  Then you will complain when your user applications
don't work as you expect.



More information about the linux-arm-kernel mailing list