iccir / LoudnessMeasurer

OS X/iOS implementation of the EBU R128 loudness standard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iOS compatibility

martinjbaker opened this issue · comments

Current code won't work on iOS due to use of xmmintrin.h as used on lines 215/216/238

What changes are required?

many thanks

You can probably remove those lines. Flush-to-zero is a performance optimization.

If you end up having denormals and need to enable flush-to-zero, you can enable it per the ARM manual.

"You select flush-to-zero mode by setting the FZ bit in the FPSCR to 1. You do this using the VMRS and VMSR instructions."

Thanks for the quick reply. That does in fact work great.

Sorry the last 2 paragraphs are over my head! I've never had to deal with denormals before. I did find this though, which if I've read it correctly suggests that FTZ is enabled by default: https://stackoverflow.com/a/7347660/882613

Per Support for Denormal Numbers, it sounds like the Stack Overflow link is correct: denormals aren't enabled by default. Although this may have changed in the past 8 years.

Unless you hit a performance snag, you should be fine keeping those lines commented out!