home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / sys / h / scalint < prev    next >
Encoding:
Text File  |  1995-01-11  |  540 b   |  27 lines

  1. /*
  2.  * $Header: /ax/networking:include/sys/scalint.h:networking  1.1  $
  3.  * $Source: /ax/networking:include/sys/scalint.h: $
  4.  *
  5.  * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
  6.  *
  7.  * $Log:    scalint.h,v $
  8.  * Revision 1.1  95/01/11  10:19:41  kwelton
  9.  * Initial revision
  10.  * 
  11.  * Revision 1.3  88/06/17  20:20:49  beta
  12.  * Acorn Unix initial beta version
  13.  * 
  14.  */
  15. /*
  16.  * Scaled integer support
  17.  */
  18.  
  19. typedef int fix;
  20.  
  21. #define    i_to_fix(i)    ((i)*FSCALE)
  22. #define    d_to_fix(d)    ((int)((d)*(double)FSCALE))
  23.  
  24. fix mult_fix();
  25.  
  26. /* EOF scalint.h */
  27.