math: add double precision error handling functions
[musl] / src / thread / tls.c