Removed __pure's and __pure2's. __pure is a no-op for recent versions

of gcc by definition, and __pure2 is a no-op in effect (presumably the
compiler can see when an inline function has no side effects).
This commit is contained in:
Bruce Evans 1996-10-12 20:09:48 +00:00
parent 4458ac71b1
commit 8ba0c490a9
2 changed files with 7 additions and 10 deletions

View File

@ -39,7 +39,7 @@
* from: Utah $Hdr: swap_pager.c 1.4 91/04/30$
*
* @(#)swap_pager.c 8.9 (Berkeley) 3/21/94
* $Id: swap_pager.c,v 1.70 1996/07/30 03:08:05 dyson Exp $
* $Id: swap_pager.c,v 1.71 1996/09/08 20:44:33 dyson Exp $
*/
/*
@ -156,10 +156,8 @@ static int npendingio = NPENDINGIO;
static int dmmin;
int dmmax;
static __pure int
swap_pager_block_index __P((vm_pindex_t pindex)) __pure2;
static __pure int
swap_pager_block_offset __P((vm_pindex_t pindex)) __pure2;
static int swap_pager_block_index __P((vm_pindex_t pindex));
static int swap_pager_block_offset __P((vm_pindex_t pindex));
static daddr_t *swap_pager_diskaddr __P((vm_object_t object,
vm_pindex_t pindex, int *valid));
static void swap_pager_finish __P((swp_clean_t spc));
@ -761,14 +759,14 @@ swap_pager_dealloc(object)
object->un_pager.swp.swp_blocks = NULL;
}
static inline __pure int
static inline int
swap_pager_block_index(pindex)
vm_pindex_t pindex;
{
return (pindex / SWB_NPAGES);
}
static inline __pure int
static inline int
swap_pager_block_offset(pindex)
vm_pindex_t pindex;
{

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)vm_page.c 7.4 (Berkeley) 5/7/91
* $Id: vm_page.c,v 1.66 1996/09/28 17:53:18 bde Exp $
* $Id: vm_page.c,v 1.67 1996/10/06 18:27:39 dyson Exp $
*/
/*
@ -159,8 +159,7 @@ static u_short vm_page_dev_bsize_chunks[] = {
0x1ff, 0x3ff, 0x7ff, 0xfff, 0x1fff, 0x3fff, 0x7fff, 0xffff
};
static inline int vm_page_hash __P((vm_object_t object, vm_pindex_t pindex))
__pure2;
static inline int vm_page_hash __P((vm_object_t object, vm_pindex_t pindex));
static int vm_page_freechk_and_unqueue __P((vm_page_t m));
static void vm_page_free_wakeup __P((void));