[lkml]   [1999]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    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 Katz

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

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