lkml.org 
[lkml]   [1999]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: float point
    On Tue, 27 Jul 1999, Xinyan Zan wrote:

    > Hi, all:
    > Has anybody used the printk to output a floating point value?
    > I use printk("%f",value), but it does not work.
    > Thanks in advance for any help.

    You can't (in general) do floating point anything in the kernel. There
    are processors out there without an FPU, so it's a big nono. In order to
    to even use floating point, you have to use register save and restores.

    Jeremy

    --
    Jeremy Katz
    http://linuxpower.org


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

    \
     
     \ /
      Last update: 2005-03-22 13:53    [W:0.056 / U:1.520 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site