• Rounding floats to integers on Cortex-M4
    I've encountered an odd problem on STM 32F4xx CPU with hardware FPU enabled: When rounding floats to integers, compiler always uses VCVT (round towards zero) instruction instead of VCVTR (round using...
  • Rounding floats to integers on Cortex-M4
    I've encountered an odd problem on STM32F4xx CPU with hardware FPU enabled: When rounding floats to integers, compiler always uses VCVT (round towards zero) instruction instead of VCVTR (round using...
  • Rounding floats to integers on Cortex-M4
    I've encountered an odd problem on STM32F4xx CPU with hardware FPU enabled: When rounding floats to integers, compiler always uses VCVT (round towards zero) instruction instead of VCVTR (round using...
  • Rounding floats to integers on Cortex-M4
    I've encountered an odd problem on STM 32F4xx CPU with hardware FPU enabled: When rounding floats to integers, compiler always uses VCVT (round towards zero) instruction instead of VCVTR (round using...
  • Cortex M4 Float to int: Round to Nearest / VCVTR?
    Is there any way to convince the compiler to use the VCVTR command to convert floats to ints? That would be extremely nice. Currently the compiler seems to use always the VCVT, but this rounds...