Hello,

Whether I try to use llimd with a negative number as first argument, I got a crash (or 
an
arithmetic exception if I use the function in a normal linux process).

The following call crash : llimd ( -25 000 000,400 000 000, 1000 000)
But the following seems OK :   llimd ( 25 000 000,400 000 000, 1000 000)

In a non RT task, the exception is generated by the first div instruction. According 
to Intel's
documentation, it should trigger an exception when the result is too big for the 
target register, this seems not to be the case (as long as we don't treat the EDX:EAX 
pairs has an unsigned number but as a negative one, it should be no problem).

Does anybody have a clue for that ?

Laurent
-- [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