Deutsch English Français Italiano |
<20250322191731.00003201@yahoo.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Michael S <already5chosen@yahoo.com> Newsgroups: comp.lang.c Subject: Re: Suggested method for returning a string from a C program? Date: Sat, 22 Mar 2025 19:17:31 +0200 Organization: A noiseless patient Spider Lines: 15 Message-ID: <20250322191731.00003201@yahoo.com> References: <vrd77d$3nvtf$2@dont-email.me> <87a59hvgyk.fsf@nosuchdomain.example.com> <vrdi0g$47cb$3@dont-email.me> <mm72bl-1o2.ln1@otis.foo> <vrmdoo$1cqb$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Date: Sat, 22 Mar 2025 18:17:36 +0100 (CET) Injection-Info: dont-email.me; posting-host="16a2663479d6b4bf8fb6724acca31d7c"; logging-data="419570"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Cs+xILczdeGV2gKGWqdJvP/oH8YpfNMY=" Cancel-Lock: sha1:RAdHDxCpAALOWfpTYV6hxNr0UMw= X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32) Bytes: 1461 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.