HPCC-10525 Solve constant folding functions for ARM

ARM32 implementation - tested in isolation but not in the context of the
compiler, as I don't have a suitable machine.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Stack alignment for public interfaces is 8 (AAPCS 5.2.1.2)