Re: is double slower?

Liste des GroupesRevenir à cl c  
Sujet : Re: is double slower?
De : Bonita.Montero (at) *nospam* gmail.com (Bonita Montero)
Groupes : comp.lang.c
Date : 09. Dec 2024, 14:50:14
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vj6sil$e6qt$1@raubtier-asyl.eternal-september.org>
References : 1 2
User-Agent : Mozilla Thunderbird
Am 05.11.2024 um 09:14 schrieb David Brown:

You can, as Bonita suggested, look up instruction timing information at agner.org for the cpu you are using (assuming it's an x86 device) to get some idea of any fundamental differences in timings.  Usually for modern "big" processors, basic operations such as addition and multiplication are single cycle or faster (i.e., multiple instructions can be done in parallel) for float and double.  But division, square root, and other more complex operations can take a lot longer with doubles.
Agner.org says that a SQRTS/PD is 21 clock cycles and a SQRTSP/S is 15
clock cycles; that's not much difference.

Date Sujet#  Auteur
4 Nov 24 * is double slower?18fir
4 Nov 24 +* Re: is double slower?5Chris M. Thomasson
4 Nov 24 i`* Re: is double slower?4fir
4 Nov 24 i +* Re: is double slower?2fir
4 Nov 24 i i`- Re: is double slower?1Chris M. Thomasson
4 Nov 24 i `- Re: is double slower?1Chris M. Thomasson
4 Nov 24 +- Re: is double slower?1Bonita Montero
5 Nov 24 `* Re: is double slower?11David Brown
5 Nov 24  +* Re: is double slower?8fir
5 Nov 24  i+- Re: is double slower?1fir
5 Nov 24  i+* Re: is double slower?3fir
6 Nov 24  ii`* Re: is double slower?2fir
6 Nov 24  ii `- Re: is double slower?1Chris M. Thomasson
5 Nov 24  i`* Re: is double slower?3David Brown
5 Nov 24  i `* Re: is double slower?2fir
5 Nov 24  i  `- Re: is double slower?1fir
9 Dec 24  `* Re: is double slower?2Bonita Montero
9 Dec 24   `- Re: is double slower?1Bonita Montero

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal