Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.arch.embedded > #21724
| Path | csiph.com!goblin2!goblin.stu.neva.ru!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Philipp Klaus Krause <pkk@spth.de> |
| Newsgroups | comp.arch.embedded |
| Subject | Re: Slightly OT: speed of operation on a PC |
| Date | Tue, 11 Aug 2015 11:04:29 +0200 |
| Organization | solani.org |
| Lines | 23 |
| Message-ID | <mqcdqs$a3j$1@solani.org> (permalink) |
| References | <juKdnf5uzZr0YF3InZ2dnUU7-YOdnZ2d@giganews.com> <55c0ff2e$0$3060$426a34cc@news.free.fr> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| X-Trace | solani.org 1439283868 10355 eJwFwQkBACAIA8BKogwhDo/rH8E7HBPrqwZTEHRa1L0LGpxy70l/DMzZkaJc81oxqMgNGX4l5xGt (11 Aug 2015 09:04:28 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Tue, 11 Aug 2015 09:04:28 +0000 (UTC) |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 |
| X-User-ID | eJwFwQkBACAIA8BME8YTBxD7R/COYrBxNZry8S36ov0+zAlqpaeUHx8J9jYsswjlyPSG9wciFRE6 |
| In-Reply-To | <55c0ff2e$0$3060$426a34cc@news.free.fr> |
| Cancel-Lock | sha1:56EqAkek6pJfX1IFOw9tAZQvsLg= |
| X-NNTP-Posting-Host | eJwNwoENwCAMA7CXCCEdnFOF9v8TmGwxEP5WKJb6d3aBu7LsLuLOGpkATpvUpHyk5rhGMvoBJ4sRVA== |
| Xref | csiph.com comp.arch.embedded:21724 |
Show key headers only | View raw
On 04.08.2015 20:06, Lanarcam wrote: > Le 04/08/2015 19:59, Tim Wescott a écrit : >> Which do you think is quicker on a PC, with the latest gnu compiler: >> >> double a = something; >> double b = something else; >> >> if (a >= 0.0 && b < 0.0) >> >>>> or << >> >> if (a * b <= 0) >> >> Thank you for your time. >> > if (a + b < a) would be quicker, I believe. Why would it? Depending on the architecture, comparing with 0 is often more efficient than with other values. Also multiplication is a much simpler operation than addition for floating-point values. Philipp
Back to comp.arch.embedded | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Slightly OT: speed of operation on a PC Tim Wescott <seemywebsite@myfooter.really> - 2015-08-04 12:59 -0500
Re: Slightly OT: speed of operation on a PC rickman <gnuarm@gmail.com> - 2015-08-04 14:06 -0400
Re: Slightly OT: speed of operation on a PC Lanarcam <lanarcam1@yahoo.fr> - 2015-08-04 20:06 +0200
Re: Slightly OT: speed of operation on a PC Tim Wescott <seemywebsite@myfooter.really> - 2015-08-04 13:27 -0500
Re: Slightly OT: speed of operation on a PC Lanarcam <lanarcam1@yahoo.fr> - 2015-08-04 20:33 +0200
Re: Slightly OT: speed of operation on a PC rickman <gnuarm@gmail.com> - 2015-08-04 17:05 -0400
Re: Slightly OT: speed of operation on a PC Tim Wescott <seemywebsite@myfooter.really> - 2015-08-04 18:54 -0500
Re: Slightly OT: speed of operation on a PC glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2015-08-05 00:09 +0000
Re: Slightly OT: speed of operation on a PC Don Y <this@is.not.me.com> - 2015-08-04 17:32 -0700
Re: Slightly OT: speed of operation on a PC Clifford Heath <no.spam@please.net> - 2015-08-05 17:25 +1000
Re: Slightly OT: speed of operation on a PC Anders.Montonen@kapsi.spam.stop.fi.invalid - 2015-08-05 08:34 +0000
Re: Slightly OT: speed of operation on a PC Philipp Klaus Krause <pkk@spth.de> - 2015-08-11 11:04 +0200
Re: Slightly OT: speed of operation on a PC Don Y <this@is.not.me.com> - 2015-08-04 11:07 -0700
Re: Slightly OT: speed of operation on a PC Tim Wescott <seemywebsite@myfooter.really> - 2015-08-04 13:28 -0500
Re: Slightly OT: speed of operation on a PC Don Y <this@is.not.me.com> - 2015-08-04 11:37 -0700
Re: Slightly OT: speed of operation on a PC Tom Gardner <spamjunk@blueyonder.co.uk> - 2015-08-04 22:20 +0100
Re: Slightly OT: speed of operation on a PC glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2015-08-04 21:45 +0000
Re: Slightly OT: speed of operation on a PC Don Y <this@is.not.me.com> - 2015-08-04 15:34 -0700
Re: Slightly OT: speed of operation on a PC glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2015-08-05 00:00 +0000
Re: Slightly OT: speed of operation on a PC Don Y <this@is.not.me.com> - 2015-08-04 17:36 -0700
Re: Slightly OT: speed of operation on a PC glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2015-08-05 05:43 +0000
Re: Slightly OT: speed of operation on a PC Don Y <this@is.not.me.com> - 2015-08-05 00:44 -0700
Re: Slightly OT: speed of operation on a PC Clifford Heath <no.spam@please.net> - 2015-08-05 19:14 +1000
Re: Slightly OT: speed of operation on a PC Don Y <this@is.not.me.com> - 2015-08-05 08:04 -0700
Re: Slightly OT: speed of operation on a PC Clifford Heath <no.spam@please.net> - 2015-08-05 17:28 +1000
Re: Slightly OT: speed of operation on a PC Paul Rubin <no.email@nospam.invalid> - 2015-08-04 11:13 -0700
Re: Slightly OT: speed of operation on a PC "Bill Davy" <Bill@SynectixLtd.com> - 2015-08-04 19:19 +0100
Re: Slightly OT: speed of operation on a PC Tom Gardner <spamjunk@blueyonder.co.uk> - 2015-08-04 22:18 +0100
Re: Slightly OT: speed of operation on a PC Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> - 2015-08-05 10:25 +0000
Re: Slightly OT: speed of operation on a PC Tom Gardner <spamjunk@blueyonder.co.uk> - 2015-08-05 11:42 +0100
Re: Slightly OT: speed of operation on a PC Anders.Montonen@kapsi.spam.stop.fi.invalid - 2015-08-05 11:23 +0000
Re: Slightly OT: speed of operation on a PC David Brown <david.brown@hesbynett.no> - 2015-08-05 13:58 +0200
Re: Slightly OT: speed of operation on a PC Robert Wessel <robertwessel2@yahoo.com> - 2015-08-06 00:24 -0500
Re: Slightly OT: speed of operation on a PC David Brown <david.brown@hesbynett.no> - 2015-08-05 12:59 +0200
Re: Slightly OT: speed of operation on a PC Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2015-08-04 23:30 +0200
Re: Slightly OT: speed of operation on a PC Philipp Klaus Krause <pkk@spth.de> - 2015-08-11 11:19 +0200
Re: Slightly OT: speed of operation on a PC David Brown <david.brown@hesbynett.no> - 2015-08-05 08:32 +0200
Re: Slightly OT: speed of operation on a PC Stefan Reuther <stefan.news@arcor.de> - 2015-08-05 18:43 +0200
Re: Slightly OT: speed of operation on a PC edward.ming.lee@gmail.com - 2015-08-05 10:31 -0700
Re: Slightly OT: speed of operation on a PC Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2015-08-05 20:11 +0200
Re: Slightly OT: speed of operation on a PC rickman <gnuarm@gmail.com> - 2015-08-05 20:19 -0400
Re: Slightly OT: speed of operation on a PC edward.ming.lee@gmail.com - 2015-08-05 19:45 -0700
Re: Slightly OT: speed of operation on a PC Clifford Heath <no.spam@please.net> - 2015-08-06 12:56 +1000
csiph-web