Keil Logo

When to use flush-to-zero mode in VFP

8.13 When to use flush-to-zero mode in VFP

You can change between flush-to-zero mode and normal mode, depending on the requirements of different parts of your code.

You must select flush-to-zero mode if all the following are true:
  • IEEE 754 compliance is not a requirement for your system.
  • The algorithms you are using sometimes generate denormalized numbers.
  • Your system uses support code to handle denormalized numbers.
  • The algorithms you are using do not depend for their accuracy on the preservation of denormalized numbers.
  • The algorithms you are using do not generate frequent exceptions as a result of replacing denormalized numbers with 0.
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.
Numbers already in registers are not affected by changing mode.
Non-ConfidentialPDF file icon PDF versionARM DUI0379H
Copyright © 2007, 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.