floating point operations inside kernel

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

 



hi , 

i need to do some floating point operation inside
kernel ( in a module ) , what i exactly want is to use
the following equation :

 x(i) =  a k(i) + (1 - a ) x( i - 1 ) { this is EWMA }

 here , 
 
   x(i) -> exponential average at time 'i'
   k(i) -> event intensity at time i 
   and  VALUE OF a :   0 < a < 1 .

The problem is : 'printk ' does not recognise the
floating point numbers ( i tried ) , i have also read
in a paper called "Rusty's unreliable guide for kernel
hacking " that floating point operations can not be
performed inside the kernel . 

i do'nt know whether floating point operations can be
done in kernel or not ( i di'nt debug to see the
operation ) . 

So is there any way to perform floating point
operation inside kernel , if yes what , if no how do i
use that equation ( it is critical for my project ,
can not be eliminated ) .

thanx , 

Rgds, 
Pankaj Chauhan 

________________________________________________________________________
Yahoo! India Mobile: Download the latest polyphonic ringtones.
Go to http://in.mobile.yahoo.com

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux