stm: Add some floating-point math functions.

These have been taken from the musl library.  It's a bit of a hack for
now, just to get math functions working.