01:       COMPLEX FUNCTION CLADIV( X, Y )
02: *
03: *  -- LAPACK auxiliary routine (version 3.2) --
04: *  -- LAPACK is a software package provided by Univ. of Tennessee,    --
05: *  -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
06: *     November 2006
07: *
08: *     .. Scalar Arguments ..
09:       COMPLEX            X, Y
10: *     ..
11: *
12: *  Purpose
13: *  =======
14: *
15: *  CLADIV := X / Y, where X and Y are complex.  The computation of X / Y
16: *  will not overflow on an intermediary step unless the results
17: *  overflows.
18: *
19: *  Arguments
20: *  =========
21: *
22: *  X       (input) COMPLEX
23: *  Y       (input) COMPLEX
24: *          The complex scalars X and Y.
25: *
26: *  =====================================================================
27: *
28: *     .. Local Scalars ..
29:       REAL               ZI, ZR
30: *     ..
31: *     .. External Subroutines ..
32:       EXTERNAL           SLADIV
33: *     ..
34: *     .. Intrinsic Functions ..
35:       INTRINSIC          AIMAG, CMPLX, REAL
36: *     ..
37: *     .. Executable Statements ..
38: *
39:       CALL SLADIV( REAL( X ), AIMAG( X ), REAL( Y ), AIMAG( Y ), ZR,
40:      $             ZI )
41:       CLADIV = CMPLX( ZR, ZI )
42: *
43:       RETURN
44: *
45: *     End of CLADIV
46: *
47:       END
48: