Hi Jaya,

On Tue, Nov 21, 2000 at 03:36:05PM +0530, Jaya wrote:
> 
> Can one use floating point operations in the Linux Kernel  ??

AFAIK you cannot use floating point operations in the Linux Kernel.

But you *can* use them in your RT threads.

> 
> Where can I get some info. on this ?

man pthread_setfp_np

and there is a piece from a an important mail by Victor:

************************************************

POSIX requires that a newly created thread start running at once, so
         creat
         set_fp
is not good since the thread may have already executed fp operations.
As Pavel says, the correct method is

thread_code{
             set_fp  /*before we do any fp ops */
       ...
      }

and then in the init code
       creat_thread
The alternative method, which is more POSIX-ly correct is to use
       pthread_attr_setfp

during the thread creation --  before the create call.
But since I just noticed that this call is not in the man pages yet, I'm
not surprised that nobody saw it. sorry.

*************************************************

The topic is sometimes discussed in this list, see archives or ask.

Regards,

pa

-- 
..........................................................................
Pavel Andris                               | tel: +421 7 5941 2167
Institute of Control Theory and Robotics   | fax: +421 7 5477 6045
Slovak Academy of Sciences                 | 
Dubravska cesta 9                          | e-mail: [EMAIL PROTECTED]
SK - 842 37 Bratislava                     |
Slovakia                                   |
..........................................................................

"The hardest thing is to take something people don't need and make it part
of their lives."
               Sheila Hewett, vice-president for marketing and advertising
..........................................................................
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to