1: /*
   2:  * Copyright (c) 1980 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)r_mod.c	5.3	7/9/85
   7:  */
   8: 
   9: float flt_retval;
  10: 
  11: float r_mod(x,y)
  12: float *x, *y;
  13: {
  14: double floor(), quotient = *x / *y;
  15: if (quotient >= 0.0)
  16:     quotient = floor(quotient);
  17: else
  18:     quotient = -floor(-quotient);
  19: flt_retval = *x - (*y) * quotient ;
  20: return(flt_retval);
  21: }

Defined functions

r_mod defined in line 11; never used

Defined variables

flt_retval defined in line 9; used 2 times
Last modified: 1985-07-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 678
Valid CSS Valid XHTML 1.0 Strict