# Linux Kernel Module Cheat
The perfect emulation setup to study and develop the <<linux-kernel>> v5.9.2, kernel modules, <<qemu-buildroot-setup,QEMU>>, <<gem5-buildroot-setup,gem5>> and x86_64, ARMv7 and ARMv8 <<userland-assembly,userland>> and <<baremetal-setup,baremetal>> assembly, <<c,ANSI C>>, <<cpp,C++>> and <<posix,POSIX>>. <<gdb>> and <<kgdb>> just work. Powered by <<about-the-qemu-buildroot-setup,Buildroot>> and <<about-the-baremetal-setup,crosstool-NG>>. Highly automated. Thoroughly documented. Automated <<test-this-repo,tests>>.

##### 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