Untangle the fp value retrieval.
Warning about the va_arg vs long doubles.
Use Perl_frexp, and cast arg to NV as appropriate.