X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FPrimOps.cmm;h=c7c372756ce721c6bbcac7a8453b7edc763871cd;hb=02038ff3db11048d90f59b9c05bc188180e0db39;hp=c3ab788ba2df046dfa25cc0e51289bec60b6b57d;hpb=2d0131da643d1f8da16816c672b7e29defcf2a2d;p=ghc-hetmet.git diff --git a/rts/PrimOps.cmm b/rts/PrimOps.cmm index c3ab788..c7c3727 100644 --- a/rts/PrimOps.cmm +++ b/rts/PrimOps.cmm @@ -928,16 +928,20 @@ decodeDoublezu2Intzh_fast W_ p; FETCH_MP_TEMP(mp_tmp1); FETCH_MP_TEMP(mp_tmp2); - FETCH_MP_TEMP(mp_tmp_w); + FETCH_MP_TEMP(mp_result1); + FETCH_MP_TEMP(mp_result2); /* arguments: D1 = Double# */ arg = D1; /* Perform the operation */ - foreign "C" __decodeDouble_2Int(mp_tmp1 "ptr", mp_tmp2 "ptr", mp_tmp_w "ptr", arg) []; - - /* returns: (Int# (mant high), Int# (mant low), Int# (expn)) */ - RET_NNN(W_[mp_tmp1], W_[mp_tmp2], W_[mp_tmp_w]); + foreign "C" __decodeDouble_2Int(mp_tmp1 "ptr", mp_tmp2 "ptr", + mp_result1 "ptr", mp_result2 "ptr", + arg) []; + + /* returns: + (Int# (mant sign), Word# (mant high), Word# (mant low), Int# (expn)) */ + RET_NNNN(W_[mp_tmp1], W_[mp_tmp2], W_[mp_result1], W_[mp_result2]); } /* -----------------------------------------------------------------------------