Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1e3c5b0

Browse files
committed
Memset cleanup
1 parent e166409 commit 1e3c5b0

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/include/c.h

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: c.h,v 1.32 1998/02/11 21:38:08 momjian Exp $
10+
* $Id: c.h,v 1.33 1998/02/11 21:45:40 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -708,20 +708,18 @@ typedef struct Exception
708708
/* Get a bit mask of the bits set in non-int32 aligned addresses */
709709
#define INT_ALIGN_MASK (sizeof(int32) - 1)
710710

711-
/* This function gets call too often, so we inline it if we can */
711+
/*
712+
* This function gets call too often, so we inline it if we can.
713+
* Are we aligned for int32?
714+
* We have to cast the pointer to int so we can do the AND
715+
* We got the 64 number by testing this against the stock memset() on
716+
* BSD/OS 3.0. Larger values were slower.
717+
*/
712718
#define MemSet(start, val, len) do \
713-
{ /* are we aligned for int32? */ \
714-
/* We have to cast the pointer to int \
715-
so we can do the AND */ \
719+
{
716720
if (((long)(start) & INT_ALIGN_MASK) == 0 && \
717721
((len) & INT_ALIGN_MASK) == 0 && \
718722
(val) == 0 && \
719-
/* \
720-
* We got this number by testing this \
721-
* against the stock memset() on \
722-
* bsd/os 3.0. Larger values were \
723-
* slower. \
724-
*/ \
725723
(len) <= 64) \
726724
{ \
727725
int32 *_i = (int32 *)(start); \

0 commit comments

Comments
 (0)