HPCC-10525 Solve constant folding functions for ARM

Fix issues addressed in code review

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-10525 Solve constant folding functions for ARM

Additional issues from testing on rPi

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>