|
7 | 7 | * |
8 | 8 | * Copyright (c) 1994, Regents of the University of California |
9 | 9 | * |
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 $ |
11 | 11 | * |
12 | 12 | *------------------------------------------------------------------------- |
13 | 13 | */ |
@@ -708,20 +708,18 @@ typedef struct Exception |
708 | 708 | /* Get a bit mask of the bits set in non-int32 aligned addresses */ |
709 | 709 | #defineINT_ALIGN_MASK (sizeof(int32) - 1) |
710 | 710 |
|
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 | + */ |
712 | 718 | #defineMemSet(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 | +{ |
716 | 720 | if (((long)(start)&INT_ALIGN_MASK)==0&& \ |
717 | 721 | ((len)&INT_ALIGN_MASK)==0&& \ |
718 | 722 | (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 | | - */ \ |
725 | 723 | (len) <=64) \ |
726 | 724 | { \ |
727 | 725 | int32*_i= (int32*)(start); \ |
|