By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,505 Members | 1,165 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,505 IT Pros & Developers. It's quick & easy.

float vs double speed

P: n/a
Does anyone have any data comparing the speed
of java double vs. float operations? According to a
document I found on the Intel site, hardware
support for 64 bit floating point was not added
until the SSE2 Extensions on the Pentium IV and
Xenon processors. I have the el cheapo Intel Celeron.
(It reminds me of being on a diet and eating celery.)
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On the wall of the virtual bathroom stall, "Phil..." <ry***@ieee.org> scratches:
Does anyone have any data comparing the speed
of java double vs. float operations? According to a
document I found on the Intel site, hardware
support for 64 bit floating point was not added
until the SSE2 Extensions on the Pentium IV and
Xenon processors. I have the el cheapo Intel Celeron.
(It reminds me of being on a diet and eating celery.)


On 32 bit processors the float will be faster if you assume that your
particular JVM uses native hardware floting point operations. JAVA itself
makes no guarantee that the type is handled by native operations though.

-Wiseguy
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.