On Wednesday 14 November 2001 21:34, Tim Beamish wrote:
> Can we do this in a real time thread:
>
> float x = 1.5;
> rtl_printf("%f", x);

No. AFAIK, rtl_printf is (possibly indirectly) using the kernel's version 
of snprintf(), which does not support FP.


> I've given the thread permission to do floating point arithmetic but it
> shouldn't matter in this case.

Right, it doesn't matter, because there's no FP code in there to execute.


Either send the FP number off as is to user space through a FIFO, for a 
user space application to print out, or write some "ftoa()" 
implementation to use in your RTL thread, with rtl_printf("%s", 
your_buffer).


//David Olofson --- Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
|      Multimedia Application Integration Architecture      |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------------> http://www.linuxdj.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`-------------------------------------> http://olofson.net -'
-- [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/

Reply via email to