Article View: comp.lang.c.moderated
Article #2464Re: void* type
From: Lawrence Kirby
Date: Tue, 02 Apr 1996 02:07
Date: Tue, 02 Apr 1996 02:07
34 lines
1679 bytes
1679 bytes
In article <4jmcnh$lqk@solutions.solon.com>
hirth@wand.franken.de "Claus Hirth" writes:
>J. Kanze (kanze@gabi-soft.fr) wrote:
>
>: BTW, I've found that a small optimizing trick in functions like this can
>: sometimes work wonders for performance:
>
>: int
>: swap( void* a , void* b , size_t sz )
>: {
>: unsigned char buffer[ EXPECTEDMAXSIZE ] ;
>
>An even smaller "trick" : use a static array instead.
In what sense is that smaller?
>Anyway.
>
>What still nags at me about the portability issue :
>Is there a machine still in use (Kurt, please name it)
>on which the representation of a
> double *
>differs from the representation of a
> char *
>?
Section 5.17 of the FAQ suggests some candidates.
--
-----------------------------------------
Lawrence Kirby | fred@genesis.demon.co.uk
Wilts, England | 70734.126@compuserve.com
-----------------------------------------
Technical Details
Message-ID:
<4jq253$aav@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailReferences:
<4iepre$ag7@solutions.solon.com> <4ii34g$nlp@solutions.solon.com> <4jibl5$89u@solutions.solon.com> <4jmcnh$lqk@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: Lawrence Kirby <fred@genesis.demon.co.uk> Newsgroups: comp.lang.c.moderated Subject: Re: void* type Date: 1 Apr 1996 20:07:31 -0600 Organization: none Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4jq253$aav@solutions.solon.com> References: <4iepre$ag7@solutions.solon.com> <4ii34g$nlp@solutions.solon.com> <4jibl5$89u@solutions.solon.com> <4jmcnh$lqk@solutions.solon.com> Reply-To: fred@genesis.demon.co.uk NNTP-Posting-Host: solutions.solon.com X-NNTP-Posting-Host: genesis.demon.co.uk X-Newsreader: Demon Internet Simple News v1.27 X-Mail2News-Path: disperse.demon.co.uk!post.demon.co.uk!genesis.demon.co.uk