linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Levente Kurusa <levex@linux.com>
To: "Richard Weinberger" <richard.weinberger@gmail.com>,
	韩磊 <bonben1989@gmail.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: A simple question of a linux kernel beginner
Date: Thu, 31 Oct 2013 13:03:30 +0100	[thread overview]
Message-ID: <52724712.6020809@linux.com> (raw)
In-Reply-To: <CAFLxGvy=pQZBmLuhnY2om-Ypek-B=qTeu_r9P1cgRHcyLxbg-g@mail.gmail.com>

2013-10-31 12:57 keltezéssel, Richard Weinberger írta:
> On Thu, Oct 31, 2013 at 12:31 PM, 韩磊 <bonben1989@gmail.com> wrote:
>> May I can use  the ''double" as a  basic variables?
>>
>> When I define the "double" as a function return type in linux kernel,the error
>> is "error: SSE register return with SSE disabled".
>>
>> How to fix it??
> 
> Don't do it. :)
> In kernel land we don't want FPU stuff because it slows the mode switch down.
> If you *really* need to use the FPU look how the raid6 or crypto code does.

Not only it slows down the switches, but if there is no FPU, then it would
need the so-called floating-point-library. Which would slow down the code,
but the kernel needs to be as fast as it can.

-- 
Regards,
Levente Kurusa

  reply	other threads:[~2013-10-31 12:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-31 11:31 A simple question of a linux kernel beginner 韩磊
2013-10-31 11:57 ` Richard Weinberger
2013-10-31 12:03   ` Levente Kurusa [this message]
2013-10-31 12:19 ` Yijing Wang
2013-10-31 18:13 ` Andreas Mohr
2013-11-01  1:12   ` 韩磊

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=52724712.6020809@linux.com \
    --to=levex@linux.com \
    --cc=bonben1989@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=richard.weinberger@gmail.com \
    /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).