Recent

Author Topic: FPU Exception masking  (Read 1617 times)

scribly

  • Jr. Member
  • **
  • Posts: 80
FPU Exception masking
« on: March 06, 2015, 11:20:41 am »
I need to parse through raw data where fields are aligned on 4 bytes and either contain a floating point value, or garbage, and filter out float values between 100 and 5000

In windows I can use  SetMXCSR (and Set8087CW) to disable exceptions when the data is garbage but that isn't available in ARM
Is there a generic way to do this or will I have to result to ASM, or use a soft fpu implementation that skips those exceptions ?

Edit: Just noticed SetExceptionMask()  Is this what I am looking for ?
Edit2: Yup, it's fixed
« Last Edit: March 06, 2015, 11:29:13 am by scribly »

 

TinyPortal © 2005-2018