🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #958

Re: .5 against 0.5f

#958
From: Steven G. Kargl
Date: Wed, 28 Oct 2026 16:27
21 lines
1944 bytes
On Wed, 28 Oct 2026 07:55:11 +0100, fir wrote:


>> but i not tested/talked yet
> ai says even fast math not enebles that but there is a flag
> 
> 
> -fsingle-precision-constant.

It is a poor decision to depend on any specific compiler's
options unless you intend to never use any other compiler.
With clang, I see

% cc -o z.s -S -O3 -fsingle-precision-constant j8.c 
cc: warning: optimization flag '-fsingle-precision-constant' is not
    supported [-Wignored-optimization-argument]

HTH

-- 
steve
Technical Details
Message-ID: <11bt7p9$2i0ag$2@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11bpvs7$1e6kc$2@dont-email.me> <11bqnvh$1np7s$1@dont-email.me> <11br5td$1to7l$1@dont-email.me> <11br792$1u7e5$1@dont-email.me> <11brgqf$21170$2@dont-email.me> <11brkco$21oj5$1@dont-email.me> <11bs4tj$26daj$1@dont-email.me> <11bs613$26knh$1@dont-email.me> <11bs68h$26knh$2@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: "Steven G. Kargl" <sgk@REMOVEtroutmask.apl.washington.edu>
Newsgroups: comp.lang.c
Subject: Re: .5 against 0.5f
Date: Wed, 28 Oct 2026 16:27:21 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <11bt7p9$2i0ag$2@dont-email.me>
References: <11bpvs7$1e6kc$2@dont-email.me> <11bqnvh$1np7s$1@dont-email.me>
	<11br5td$1to7l$1@dont-email.me> <11br792$1u7e5$1@dont-email.me>
	<11brgqf$21170$2@dont-email.me> <11brkco$21oj5$1@dont-email.me>
	<11bs4tj$26daj$1@dont-email.me> <11bs613$26knh$1@dont-email.me>
	<11bs68h$26knh$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 28 Oct 2026 16:27:22 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2687312"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19yMkoOvkUibogAJgQc2Jl0"; posting-host="1bf873808c53778ca982afc43c23d859"
User-Agent: Pan/0.164 (Kupiansk)
Cancel-Lock: sha1:XpGwg7+P7mbR1DvYMuZkRZqQ6jk= sha256:mn1eLZeQITFdm9gSzSOFxGgcGTR8WYoXiyjn7YgEO8w=
	sha1:OVoOLq6Ti6/ne/Swb58kBgY8awo= sha256:lilnIfoQWALHmt58Iw3TNYJeVw7T+ktM8USxzOE+vzc=