# Linux Kernel Module Cheat

##### 30.6.1.3. ARM VCVT instruction

Example: userland/arch/arm/vcvt.S

Convert between integers and floating point.

ARMv7 architecture reference manual on rounding:

> The floating-point to fixed-point operation uses the Round towards Zero rounding mode. The fixed-point to floating-point operation uses the Round to Nearest rounding mode.

Notice how the opcode takes two types.

E.g., in our 32-bit float to 32-bit unsigned example we use:

    vld1.32.f32

- ARM VCVTR instruction

- ARMv8 AArch32 VCVTA instruction