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>