From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: Query about Float Point Operation
Date: Mon, 29 Mar 2010 09:11:32 +0100 [thread overview]
Message-ID: <20100329081132.GA9988@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <d82162471003282222q5e463306rd385c3ed54879e4d@mail.gmail.com>
On Mon, Mar 29, 2010 at 10:52:50AM +0530, Rajanikanth H.V wrote:
> 2010/3/23 ??? <914059751@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.
next prev parent reply other threads:[~2010-03-29 8:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-23 12:57 Query about Float Point Operation 胡杨树
2010-03-23 13:34 ` Måns Rullgård
2010-03-29 5:22 ` Rajanikanth H.V
2010-03-29 8:11 ` Russell King - ARM Linux [this message]
2010-03-29 8:19 ` 答复: " rocky
2010-03-29 10:59 ` Martin Guy
-- strict thread matches above, loose matches on Subject: below --
2010-03-23 13:41 胡杨树
2010-03-28 21:47 ` Jamie Lokier
2010-03-28 23:34 ` Nicolas Pitre
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100329081132.GA9988@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).