native frexp function, faster than calling libm by reference
Merge pull request #8022 from simonbyrne/frexp

native frexp function