qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [6514] softfloat: add a 1.0 constant for float32 and float64
@ 2009-02-04 13:52 Aurelien Jarno
  0 siblings, 0 replies; only message in thread
From: Aurelien Jarno @ 2009-02-04 13:52 UTC (permalink / raw)
  To: qemu-devel

Revision: 6514
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6514
Author:   aurel32
Date:     2009-02-04 13:52:27 +0000 (Wed, 04 Feb 2009)

Log Message:
-----------
softfloat: add a 1.0 constant for float32 and float64

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

Modified Paths:
--------------
    trunk/fpu/softfloat.h

Modified: trunk/fpu/softfloat.h
===================================================================
--- trunk/fpu/softfloat.h	2009-02-04 13:52:17 UTC (rev 6513)
+++ trunk/fpu/softfloat.h	2009-02-04 13:52:27 UTC (rev 6514)
@@ -307,6 +307,7 @@
 }
 
 #define float32_zero make_float32(0)
+#define float32_one make_float32(0x3f800000)
 
 /*----------------------------------------------------------------------------
 | Software IEC/IEEE double-precision conversion routines.
@@ -376,6 +377,7 @@
 }
 
 #define float64_zero make_float64(0)
+#define float64_one make_float64(0x3ff0000000000000LL)
 
 #ifdef FLOATX80
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-04 13:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-04 13:52 [Qemu-devel] [6514] softfloat: add a 1.0 constant for float32 and float64 Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).