home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 9.ddi / usr / include / sys / vmmac.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  791 b   |  26 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ifndef _SYS_VMMAC_H
  11. #define _SYS_VMMAC_H
  12.  
  13. #ident    "@(#)/usr/include/sys/vmmac.h.sl 1.1 4.0 12/08/90 13005 AT&T-USL"
  14.  
  15. #include <sys/sysmacros.h>
  16.  
  17.  
  18. /* Average new into old with aging factor time */
  19. #define    ave(smooth, cnt, time) \
  20.     smooth = ((time - 1) * (smooth) + (cnt)) / (time)
  21.  
  22. /* XXX - this doesn't really belong here */
  23. #define    outofmem()    wakeprocs((caddr_t)proc_pageout, PRMPT)
  24.  
  25. #endif    /* _SYS_VMMAC_H */
  26.