lkml.org 
[lkml]   [2013]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: A simple question of a linux kernel beginner
    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
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2013-10-31 13:21    [W:2.940 / U:0.104 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site