Debian Codegraph @

debian/external_deps/fetk/punc/src/cgcode/r1mach.c

raw
1 /* ./src_f77/r1mach.f -- translated by f2c (version 20030320).
2 You must link the resulting object file with the libraries:
3 -lf2c -lm (in that order)
4 */
5
6 #include <punc/vf2c.h>
7
8 doublereal r1mach_(integer *idum)
9 {
10 /* System generated locals */
11 real ret_val;
12
13 /* Local variables */
14 static real u, comp;
15
16 /* ----------------------------------------------------------------------- */
17 /* this routine computes the unit roundoff of the machine in double */
18 /* precision. this is defined as the smallest positive machine number */
19 /* u such that 1.0e0 + u .ne. 1.0e0 (in single precision). */
20 /* ----------------------------------------------------------------------- */
21 u = 1.f;
22 L10:
23 u *= .5f;
24 comp = u + 1.f;
25 if (comp != 1.f) {
26 goto L10;
27 }
28 ret_val = u * 2.f;
29 return ret_val;
30 /* ----------------------- end of function R1MACH ------------------------ */
31 } /* r1mach_ */
32