/[gxemul]/trunk/src/float_emul.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/float_emul.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 22 by dpavlin, Mon Oct 8 16:19:37 2007 UTC revision 24 by dpavlin, Mon Oct 8 16:19:56 2007 UTC
# Line 24  Line 24 
24   *  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF   *  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *  $Id: float_emul.c,v 1.6 2006/01/14 12:51:59 debug Exp $   *  $Id: float_emul.c,v 1.7 2006/03/30 19:36:03 debug Exp $
28   *   *
29   *  Floating point emulation routines.   *  Floating point emulation routines.
30   */   */
# Line 142  void ieee_interpret_float_value(uint64_t Line 142  void ieee_interpret_float_value(uint64_t
142          fvp->f = fraction;          fvp->f = fraction;
143    
144  #ifdef IEEE_DEBUG  #ifdef IEEE_DEBUG
145          fatal("{ ieee: x=%016llx sign=%i exponent=%i frac=%f ",          fatal("{ ieee: x=%016"PRIx64" sign=%i exponent=%i frac=%f ",
146              (long long)x, sign, exponent, fraction);              (uint64_t) x, sign, exponent, fraction);
147  #endif  #endif
148    
149          /*  TODO: this is awful for exponents of large magnitude.  */          /*  TODO: this is awful for exponents of large magnitude.  */
# Line 274  uint64_t ieee_store_float_value(double n Line 274  uint64_t ieee_store_float_value(double n
274                          r = 0;                          r = 0;
275    
276  #ifdef IEEE_DEBUG  #ifdef IEEE_DEBUG
277                  fatal(" exp=%i, r = %016llx }\n", exponent, (long long)r);                  fatal(" exp=%i, r = %016"PRIx64" }\n", exponent, (uint64_t) r);
278  #endif  #endif
279                  break;                  break;
280          default:/*  TODO  */          default:/*  TODO  */

Legend:
Removed from v.22  
changed lines
  Added in v.24

  ViewVC Help
Powered by ViewVC 1.1.26