Generate ufuncs for frexp and ldexp

Would it not be better to put this if first?  I think this if block can be cleaned up a bit.