cm48_sccz80_ldexp.asm
bitfixer_bitfixer/dg/z88dk/libsrc/_DEVELOPMENT/math/float/math48/c/sccz80/cm48_sccz80_ldexp.asm

; double ldexp(double x, int exp)

SECTION code_clib
SECTION code_fp_math48

PUBLIC cm48_sccz80_ldexp

EXTERN am48_ldexp, cm48_sccz80p_dload

cm48_sccz80_ldexp:

   pop af
   pop hl                      ; hl = exp
   
   push hl
   push af
   
   exx
   
   ld hl,4
   add hl,sp
   
   call cm48_sccz80p_dload     ; AC'= x

   jp am48_ldexp
