diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-11-11 03:02:20 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-11-11 03:02:20 +0000 |
commit | 75fee4535d1a9741474b53bd46a3585ad3c66eb5 (patch) | |
tree | de4500a8b76fdb882f055ad7bd8889be9d51c790 /src/include/c.h | |
parent | 5d283d89cb6142d721c095c28be19056ad620616 (diff) | |
download | postgresql-75fee4535d1a9741474b53bd46a3585ad3c66eb5.tar.gz postgresql-75fee4535d1a9741474b53bd46a3585ad3c66eb5.zip |
Back out use of palloc0 in place if palloc/MemSet. Seems constant len
to MemSet is a performance boost.
Diffstat (limited to 'src/include/c.h')
-rw-r--r-- | src/include/c.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/c.h b/src/include/c.h index 0bdc2ab32c5..2dfdca4c013 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: c.h,v 1.130 2002/10/24 03:11:05 momjian Exp $ + * $Id: c.h,v 1.131 2002/11/11 03:02:19 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -586,8 +586,7 @@ typedef NameData *Name; int _val = (val); \ Size _len = (len); \ \ - if ((((long) _start) & INT_ALIGN_MASK) == 0 && \ - (_len & INT_ALIGN_MASK) == 0 && \ + if ((( ((long) _start) | _len) & INT_ALIGN_MASK) == 0 && \ _val == 0 && \ _len <= MEMSET_LOOP_LIMIT) \ { \ |