COMPILATION LISTING OF SEGMENT csqrt_ Compiled by: Multics PL/I Compiler, Release 28d, of September 14, 1983 Compiled at: Honeywell LCPD Phoenix, System M Compiled on: 10/03/83 1357.5 mst Mon Options: optimize map 1 /* ****************************************************** 2* * * 3* * * 4* * Copyright (c) 1972 by Massachusetts Institute of * 5* * Technology and Honeywell Information Systems, Inc. * 6* * * 7* * * 8* ****************************************************** */ 9 10 csqrt_: proc (number) returns (complex float bin (27)); 11 12 dcl (number, a, b) complex float bin (27); 13 14 a = number; 15 real (b) = abs (real (a)); 16 17 if imag (a) = 0.0e0 18 then do; 19 real (b) = sqrt (real (b)); 20 imag (b) = 0.0e0; 21 end; 22 else do; 23 real (b) = sqrt ((abs (a) + real (b))*0.5e0); 24 25 if real (a)<0.0e0 26 & imag (a)<0.0e0 27 then real (b) = -real (b); 28 29 imag (b) = imag (a) * 0.5e0/real (b); 30 end; 31 32 if real (a) >= 0.0e0 33 then return (b); 34 35 real (a) = imag (b); 36 imag (a) = real (b); 37 38 return (a); 39 40 end csqrt_; SOURCE FILES USED IN THIS COMPILATION. LINE NUMBER DATE MODIFIED NAME PATHNAME 0 10/03/83 1004.8 csqrt_.pl1 >spec>on>pl128d>csqrt_.pl1 NAMES DECLARED IN THIS COMPILATION. IDENTIFIER OFFSET LOC STORAGE CLASS DATA TYPE ATTRIBUTES AND REFERENCES (* indicates a set context) NAMES DECLARED BY DECLARE STATEMENT. a 000100 automatic complex float bin(27) dcl 12 set ref 14* 15 17 23 25 25 29 32 35* 36* 38 b 000102 automatic complex float bin(27) dcl 12 set ref 15* 19* 19 20* 23* 23 25* 25 29* 29 32 35 36 number parameter complex float bin(27) dcl 12 ref 10 14 NAME DECLARED BY EXPLICIT CONTEXT. csqrt_ 000005 constant entry external dcl 10 NAMES DECLARED BY CONTEXT OR IMPLICATION. abs builtin function ref 15 23 imag builtin function set ref 17 20* 25 29* 29 35 36* real builtin function set ref 15 15 19* 19 23* 23 25 25* 25 29 32 35* 36 sqrt builtin function ref 19 23 STORAGE REQUIREMENTS FOR THIS PROGRAM. Object Text Link Symbol Defs Static Start 0 0 146 160 112 156 Length 320 112 12 123 33 0 BLOCK NAME STACK SIZE TYPE WHY NONQUICK/WHO SHARES STACK FRAME csqrt_ 101 external procedure is an external procedure. STORAGE FOR AUTOMATIC VARIABLES. STACK FRAME LOC IDENTIFIER BLOCK NAME csqrt_ 000100 a csqrt_ 000102 b csqrt_ THE FOLLOWING EXTERNAL OPERATORS ARE USED BY THIS PROGRAM. call_ext_out return ext_entry sqrt THE FOLLOWING EXTERNAL ENTRIES ARE CALLED BY THIS PROGRAM. complex_binary_op_ NO EXTERNAL VARIABLES ARE USED BY THIS PROGRAM. LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC 10 000001 14 000012 15 000015 17 000021 19 000023 20 000027 21 000031 23 000032 25 000056 29 000065 32 000071 35 000077 36 000101 38 000103 ----------------------------------------------------------- Historical Background This edition of the Multics software materials and documentation is provided and donated to Massachusetts Institute of Technology by Group BULL including BULL HN Information Systems Inc. as a contribution to computer science knowledge. This donation is made also to give evidence of the common contributions of Massachusetts Institute of Technology, Bell Laboratories, General Electric, Honeywell Information Systems Inc., Honeywell BULL Inc., Groupe BULL and BULL HN Information Systems Inc. to the development of this operating system. Multics development was initiated by Massachusetts Institute of Technology Project MAC (1963-1970), renamed the MIT Laboratory for Computer Science and Artificial Intelligence in the mid 1970s, under the leadership of Professor Fernando Jose Corbato. Users consider that Multics provided the best software architecture for managing computer hardware properly and for executing programs. Many subsequent operating systems incorporated Multics principles. Multics was distributed in 1975 to 2000 by Group Bull in Europe , and in the U.S. by Bull HN Information Systems Inc., as successor in interest by change in name only to Honeywell Bull Inc. and Honeywell Information Systems Inc. . ----------------------------------------------------------- Permission to use, copy, modify, and distribute these programs and their documentation for any purpose and without fee is hereby granted,provided that the below copyright notice and historical background appear in all copies and that both the copyright notice and historical background and this permission notice appear in supporting documentation, and that the names of MIT, HIS, BULL or BULL HN not be used in advertising or publicity pertaining to distribution of the programs without specific prior written permission. Copyright 1972 by Massachusetts Institute of Technology and Honeywell Information Systems Inc. Copyright 2006 by BULL HN Information Systems Inc. Copyright 2006 by Bull SAS All Rights Reserved