i can not do it in user space because , actually the equation that i gave is being calculated for everry incomming packet on a router , and the whole code is in kernel space so i think it wuold be too expensive to go in user space for every operation .. what do u say .. Rgds, Pankaj chauhan --- Lukas Ruf <ruf@rawip.org> wrote: > > pankaj chauhan <chauhan_ait@yahoo.co.in> > [2004-01-22 16:08]: > > > > 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 ) . > > > > As far as I know: you cannot carry out floating > point operations > within the kernel due to cost intensive FPU-state > saves that would > need to be done otherwise. > > What would you think about doing the calculation > within user-space? > > Can you formulate the problem such that it does not > need floating > point operations? > > wbr, > Lukas > -- > Lukas Ruf | Wanna know anything about raw > | > <http://www.lpr.ch> | IP? -> <http://www.rawip.org> > | > eMail Style Guide: > <http://www.rawip.org/style.html>| > > -- > Kernelnewbies: Help each other learn about the Linux > kernel. > Archive: > http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > ________________________________________________________________________ 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/