How to Initialise 16-bit Half Floats (GAS for ARM32)?

197 views Asked by At

When writing an ARM assembly program one can use data type directives to initialise some values. For example, in the example below we are initializing a single float:

label: .single 0.0

However, when storage space is a matter, on the ARM platform one has a choice of using half sized floats. However, there does not appear to be a data type directive that allows one to initialise half sized floats from the assembly code.

What would be the easiest way to initialize a half precision float in an ARM assembly program?

0

There are 0 answers