Flushing denormalised numbers to zero
问题 I've scoured the web to no avail. Is there a way for Xcode and Visual C++ to treat denormalised numbers as 0? I would have thought there's an option in the IDE preferences to turn on this option but can't seem to find it. I'm doing some cross-platform audio stuff and need to stop certain processors hogging resources. Cheers 回答1: You're looking for a platform-defined way to set FTZ and/or DAZ in the MXCSR register (on x86 with SSE or x86-64); see https://stackoverflow.com/a/2487733/567292