Floating point in kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I've always read that although it isn't completely forbidden, but
kernel code shouldn't use floating point arithmetic. It is not
recommended, but surely looks possible.

So just for curosity purposes (and without getting into the debate of
"You shouldn't be doing this..."), can some one point me a working
example / code on how to use floating point in kernel?

Also FP arithmatic is not recommended because the code will need to
manually save and restore FPU registers in the event of context
switch, right? But how about in atomic context? Is it safe to use FP
arithmetic ONLY in atomic context (intr and preemption disabled)?

Thanks,

Dan
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

[Index of Archives]     [Audio]     [Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux