Sujet : Re: Suggested method for returning a string from a C program?
De : already5chosen (at) *nospam* yahoo.com (Michael S)
Groupes : comp.lang.cDate : 22. Mar 2025, 18:17:31
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20250322191731.00003201@yahoo.com>
References : 1 2 3 4 5
User-Agent : Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32)
On Sat, 22 Mar 2025 13:25:43 +0000
Richard Heathfield <
rjh@cpax.org.uk> 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.