ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/portio.c
(Generate patch)

Comparing ray/src/common/portio.c (file contents):
Revision 2.2 by greg, Mon Sep 21 12:02:23 1992 UTC vs.
Revision 2.3 by greg, Fri Oct 2 16:09:57 1992 UTC

# Line 10 | Line 10 | static char SCCSid[] = "$SunId$ LBL";
10  
11   #include <stdio.h>
12  
13 + #ifndef frexp
14 + extern double  frexp();
15 + #endif
16 + #ifndef ldexp
17 + extern double  ldexp();
18 + #endif
19  
20 +
21   putstr(s, fp)                   /* write null-terminated string to fp */
22   register char  *s;
23   register FILE  *fp;
# Line 35 | Line 42 | putflt(f, fp)                  /* put out floating point number */
42   double  f;
43   FILE  *fp;
44   {
38        extern double  frexp();
45          int  e;
46  
47          putint((long)(frexp(f,&e)*0x7fffffff), 4, fp);
# Line 85 | Line 91 | double
91   getflt(fp)                      /* get a floating point number */
92   FILE  *fp;
93   {
88        extern double  ldexp();
94          double  d;
95  
96          d = (double)getint(4, fp)/0x7fffffff;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines