Re: [Emc-developers] fabs function in real time process

2010-09-26 Thread Jon Elson
Federico Manzan wrote: > On x86 kernel is not allow using FPU or floating point. > You can utilise floating point emulation. > Here you can find some example > http://www.linuxsmiths.com/blog/?p=253 > I'm sorry if this appears rude, but if you know so little about EMC, you should not be comment

Re: [Emc-developers] fabs function in real time process

2010-09-26 Thread Jon Elson
Jeff Epler wrote: > A subset of standard C math functions are available when you #include > "rtapi_math.h". This includes fabs(), which is currently used by other > realtime components such as stepgen. > > OK, I grep'ed hal/drivers, but didn't think to grep hal/components to see if they used a

Re: [Emc-developers] fabs function in real time process

2010-09-26 Thread Jeff Epler
A subset of standard C math functions are available when you #include "rtapi_math.h". This includes fabs(), which is currently used by other realtime components such as stepgen. Jeff -- Start uncovering the many advantag

Re: [Emc-developers] fabs function in real time process

2010-09-26 Thread Federico Manzan
On x86 kernel is not allow using FPU or floating point. You can utilise floating point emulation. Here you can find some example http://www.linuxsmiths.com/blog/?p=253 Ciao Fede On 09/26/10 00:41, Jon Elson wrote: > I'm trying to correct a bug in the hal_ppmc.c driver. There is a place > where a

[Emc-developers] fabs function in real time process

2010-09-25 Thread Jon Elson
I'm trying to correct a bug in the hal_ppmc.c driver. There is a place where abs was used by mistake. I have tried fabs and fabsf, and tried to include math.h, none of these worked. Is there an available floating-point absolute value function that can be used in the real-time environment? If n