Path: ...!news.misty.com!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Richard Heathfield Newsgroups: comp.lang.c Subject: Re: Suggested method for returning a string from a C program? Date: Sat, 22 Mar 2025 17:22:53 +0000 Organization: Fix this later Lines: 24 Message-ID: References: <87a59hvgyk.fsf@nosuchdomain.example.com> <20250322191731.00003201@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 22 Mar 2025 18:22:53 +0100 (CET) Injection-Info: dont-email.me; posting-host="421cf145daeb1bbae253897722856eae"; logging-data="443334"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19nju8mROGLfIxiYFXyIFk6sg6cd1xPEej1M4FiG/cieg==" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:CcKVoSB9EyCquizmzYKL8+CoDys= Content-Language: en-GB In-Reply-To: <20250322191731.00003201@yahoo.com> Bytes: 1862 On 22/03/2025 17:17, Michael S wrote: > On Sat, 22 Mar 2025 13:25:43 +0000 > Richard Heathfield wrote: > >> >> Or you can save yourself a multiplication >> >> n = (n << 2) - (n - 1); >> >> potentially shaving entire picoseconds off the runtime. >> > > Unlikely. > More likely, your transformation will confuse compiler into generation > of suboptmal code. Quite possibly. But does this face look bothered? -- Richard Heathfield Email: rjh at cpax dot org dot uk "Usenet is a strange place" - dmr 29 July 1999 Sig line 4 vacant - apply within