Extend unittest for ldexp()

The unit test checks some edge cases for 80bit reals.
This pull request adds a test for platforms which only have 64bit reals (e.g. ARM, PPC).
Merge pull request #1008 from redstar/math

Extend unittest for ldexp()