A couple implementations of the double frexp() provided by math.h.