Debian Codegraph @

Modules/ThirdParty/VNL/src/vxl/v3p/netlib/blas/srotg.c

raw symbols SCIP
1 /* blas/srotg.f -- translated by f2c (version 20050501).
2 You must link the resulting object file with libf2c:
3 on Microsoft Windows system, link with libf2c.lib;
4 on Linux or Unix systems, link with .../path/to/libf2c.a -lm
5 or, if you install libf2c.a in a standard place, with -lf2c -lm
6 -- in that order, at the end of the command line, as in
7 cc *.o -lf2c -lm
8 Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
9
10 http://www.netlib.org/f2c/libf2c.zip
11 */
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 #include "v3p_netlib.h"cxx . . $ `<file>/Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib.h`/
17
18 /* Table of constant values */
19
20 static realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! c_b4cxx . . $ c_b4. = (float)1.;
21
22 /*< subroutine srotg(sa,sb,c,s) >*/
23 /* Subroutine */ int srotg_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:275:9`!(realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *sa, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *sb, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *c__, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *s)
24 {
25 /* System generated locals */
26 realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! r__1, r__2;
27
28 /* Builtin functions */
29 double sqrtcxx . . $ sqrt(447c67c6676f75c3).(doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`!), r_signcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:23:9`!(realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *);
30
31 /* Local variables */
32 realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! r__, z__, roe, scale;
33
34
35 /* construct givens plane rotation. */
36 /* jack dongarra, linpack, 3/11/78. */
37
38 /*< real sa,sb,c,s,roe,scale,r,z >*/
39
40 /*< roe = sb >*/
41 roe = *sb;
42 /*< if( abs(sa) .gt. abs(sb) ) roe = sa >*/
43 if (dabscxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:158:9`!(*sa) > dabscxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:158:9`!(*sb)) {
44 roe = *sa;
45 }
46 /*< scale = abs(sa) + abs(sb) >*/
47 scale = dabscxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:158:9`!(*sa) + dabscxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:158:9`!(*sb);
48 /*< if( scale .ne. 0.0 ) go to 10 >*/
49 if (scale != (float)0.) {
50 goto L10;
51 }
52 /*< c = 1.0 >*/
53 *c__ = (float)1.;
54 /*< s = 0.0 >*/
55 *s = (float)0.;
56 /*< r = 0.0 >*/
57 r__ = (float)0.;
58 /*< z = 0.0 >*/
59 z__ = (float)0.;
60 /*< go to 20 >*/
61 goto L20;
62 /*< 10 r = scale*sqrt((sa/scale)**2 + (sb/scale)**2) >*/
63 L10:
64 /* Computing 2nd power */
65 r__1 = *sa / scale;
66 /* Computing 2nd power */
67 r__2 = *sb / scale;
68 r__ = scale * sqrtcxx . . $ sqrt(447c67c6676f75c3).(r__1 * r__1 + r__2 * r__2);
69 /*< r = sign(1.0,roe)*r >*/
70 r__ = r_signcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:23:9`!(&c_b4cxx . . $ c_b4., &roe) * r__;
71 /*< c = sa/r >*/
72 *c__ = *sa / r__;
73 /*< s = sb/r >*/
74 *s = *sb / r__;
75 /*< z = 1.0 >*/
76 z__ = (float)1.;
77 /*< if( abs(sa) .gt. abs(sb) ) z = s >*/
78 if (dabscxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:158:9`!(*sa) > dabscxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:158:9`!(*sb)) {
79 z__ = *s;
80 }
81 /*< if( abs(sb) .ge. abs(sa) .and. c .ne. 0.0 ) z = 1.0/c >*/
82 if (dabscxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:158:9`!(*sb) >= dabscxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:158:9`!(*sa) && *c__ != (float)0.) {
83 z__ = (float)1. / *c__;
84 }
85 /*< 20 sa = r >*/
86 L20:
87 *sa = r__;
88 /*< sb = z >*/
89 *sb = z__;
90 /*< return >*/
91 return 0;
92 /*< end >*/
93 } /* srotg_ */
94
95 #ifdef __cplusplus
96 }
97 #endif