public inbox for frysk-bugzilla@sourceware.org
help / color / mirror / Atom feed
* [Bug general/5252] New: Arithmetic of float variable and Integer value fails (on hpd)
@ 2007-11-02 15:45 tthomas at redhat dot com
  2007-11-15 20:13 ` [Bug general/5252] " tthomas at redhat dot com
  2008-01-24 19:34 ` tthomas at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: tthomas at redhat dot com @ 2007-11-02 15:45 UTC (permalink / raw)
  To: frysk-bugzilla

(fhpd) print float_ 
[0.0]

4.0
(fhpd) print float_ + 1 
[0.0]

0.0

-- 
           Summary: Arithmetic of float variable and Integer value fails (on
                    hpd)
           Product: frysk
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: frysk-bugzilla at sourceware dot org
        ReportedBy: tthomas at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=5252

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug general/5252] Arithmetic of float variable and Integer value fails (on hpd)
  2007-11-02 15:45 [Bug general/5252] New: Arithmetic of float variable and Integer value fails (on hpd) tthomas at redhat dot com
@ 2007-11-15 20:13 ` tthomas at redhat dot com
  2008-01-24 19:34 ` tthomas at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: tthomas at redhat dot com @ 2007-11-15 20:13 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From tthomas at redhat dot com  2007-11-15 20:13 -------
Prints by C test program on i686 - uses sizeof operator:
sizeof float_: 4
sizeof long_: 4
sizeof (long_ + float_): 4

GDB outputs:
(gdb) print sizeof long_
$1 = 4
(gdb) print sizeof float_
$2 = 4
(gdb) print sizeof (long_ + float_)
$3 = 8  [NOTE!]

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=5252

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug general/5252] Arithmetic of float variable and Integer value fails (on hpd)
  2007-11-02 15:45 [Bug general/5252] New: Arithmetic of float variable and Integer value fails (on hpd) tthomas at redhat dot com
  2007-11-15 20:13 ` [Bug general/5252] " tthomas at redhat dot com
@ 2008-01-24 19:34 ` tthomas at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: tthomas at redhat dot com @ 2008-01-24 19:34 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From tthomas at redhat dot com  2008-01-24 19:34 -------
    Use BigFloatingPoint for arithmetic operations.
    
    frysk-core/frysk/value/ChangeLog
    2008-01-23  Teresa Thomas  <tthomas@redhat.com>
    
    	* BigFloatingPoint.java: Add arithmetic functions.
    	* FloatingPointUnit.java: Use BigFloatingPoint for
    	arithmetics.
    	* Value.java (asBigFloatingPoint): Fix cast.
    	* IntegerType.java (putBigFloatingPoint): New.
    	* FloatingPointType.java (putBigFloatingPoint): New.
    	* ArithmeticType.java (putBigFloatingPoint): New.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=5252

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-24 19:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-02 15:45 [Bug general/5252] New: Arithmetic of float variable and Integer value fails (on hpd) tthomas at redhat dot com
2007-11-15 20:13 ` [Bug general/5252] " tthomas at redhat dot com
2008-01-24 19:34 ` tthomas at redhat dot com

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 read-only IMAP folder(s) and NNTP newsgroup(s).