Skip to content

Commit baaf8d7

Browse files
committed
Again improve MemSet comments.
1 parent 59da96b commit baaf8d7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/include/c.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
1313
* Portions Copyright (c) 1994, Regents of the University of California
1414
*
15-
* $Id: c.h,v 1.127 2002/10/08 19:17:58 momjian Exp $
15+
* $Id: c.h,v 1.128 2002/10/08 23:12:22 momjian Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -572,10 +572,11 @@ typedef NameData *Name;
572572
* Exactly the same as standard library function memset(), but considerably
573573
* faster for zeroing small word-aligned structures (such as parsetree nodes).
574574
* This has to be a macro because the main point is to avoid function-call
575-
* overhead.
575+
* overhead. However, we have also found that the loop is faster than
576+
* native libc memset() on some platforms, even those with assembler
577+
* memset() functions. More research needs to be done, perhaps with
578+
* platform-specific MEMSET_LOOP_LIMIT values or tests in configure.
576579
*
577-
* We got the MEMSET_LOOP_LIMIT value by testing this against the libc
578-
* memset() on several platforms, some with assembly language versions.
579580
* bjm 2002-10-08
580581
*/
581582
#define MemSet(start, val, len) \

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy