Deutsch   English   Français   Italiano  
<c8b52cb4ea01caf441a87843285f327b3931e735@i2pn2.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!news.neodome.net!rocksolid2!i2pn2.org!.POSTED!not-for-mail
From: fir <fir@grunge.pl>
Newsgroups: comp.lang.c
Subject: Re: is double slower?
Date: Mon, 04 Nov 2024 15:43:30 +0100
Organization: i2pn2 (i2pn.org)
Message-ID: <c8b52cb4ea01caf441a87843285f327b3931e735@i2pn2.org>
References: <4d5973952030c993c48f93329fc25be7f236e2c5@i2pn2.org> <vga417$sm5k$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 4 Nov 2024 14:43:34 -0000 (UTC)
Injection-Info: i2pn2.org;
	logging-data="917837"; mail-complaints-to="usenet@i2pn2.org";
	posting-account="+ydHcGjgSeBt3Wz3WTfKefUptpAWaXduqfw5xdfsuS0";
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24
X-Spam-Checker-Version: SpamAssassin 4.0.0
In-Reply-To: <vga417$sm5k$3@dont-email.me>
Bytes: 1792
Lines: 19

Chris M. Thomasson wrote:
> On 11/3/2024 11:53 PM, fir wrote:
>> float takes less space and when you keep arrays of floats for sure float
>> is better (less spase and uses less memory bandwidth so i guess floats
>> can be as twice faster in some aspects)
>>
>> but when you do calculations on local variables not floats do the
>> double is slower?
>
> Ask the GPU.

why? as tu cpu im not sure as on older cpus the calculations was anyway 
made on double hardware (?, im not so sure) even if you passed float
to function im not sure if on assembly level yu not passed  double

then after sse afair you got scalar code for floats and doubles
bbut simply i realized i dont know if double calculation on local
variables (not arrays) are in fakt anyway notable slower