COMPILATION LISTING OF SEGMENT csin_ Compiled by: Multics PL/I Compiler, Release 28d, of September 14, 1983 Compiled at: Honeywell LCPD Phoenix, System M Compiled on: 10/03/83 1356.9 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 csin_: proc (number) returns (complex float bin (27)); 11 12 dcl (number, a, b) complex float bin (27); 13 dcl (sinx, cosx, sinhy, coshy) float bin (27), 14 (abs, cos, cosh, imag, real, sin, sinh) builtin, 15 i fixed bin (17); 16 17 dcl code_ ext entry (fixed bin (17)); 18 19 i = 1; 20 21 csins: 22 a = number; 23 24 test: 25 if abs (imag (a))>88.028e0 26 then do; 27 call code_ (29); 28 29 sinhy, 30 coshy = 170141182.0e30; 31 end; 32 else do; 33 sinhy = sinh (imag (a)); 34 coshy = cosh (imag (a)); 35 end; 36 37 if abs (real (a)) >= 170141182.0e30 38 then do; 39 call code_ (30); 40 41 return (0.0e0); 42 end; 43 44 sinx = sin (real (a)); 45 cosx = cos (real (a)); 46 47 if i>0 48 then do; 49 real (a) = sinx*coshy; 50 imag (a) = cosx*sinhy; 51 end; 52 else if i<0 53 then do; 54 real (a) = cosx*sinhy; 55 imag (a) = -sinx*coshy; 56 57 i = -i; 58 end; 59 60 if i = 1 then return (a); 61 62 real (b) = cosx*coshy; 63 imag (b) = -sinx*sinhy; 64 65 if i = 0 then goto ret; 66 if b = 0.0e0 67 then do; 68 call code_ (36); 69 70 return (170141182.0e30*sinx); 71 end; 72 73 b = a/b; 74 75 ret: 76 return (b); 77 78 ccos_: entry (number) returns (complex float bin (27)); 79 80 i = 0; 81 82 goto csins; 83 84 ctan_: entry (number) returns (complex float bin (27)); 85 86 i = 2; 87 88 goto csins; 89 90 csinh_: entry (number) returns (complex float bin (27)); 91 92 i = -1; 93 94 csinhs: 95 real (a) = -imag (number); 96 imag (a) = real (number); 97 98 goto test; 99 100 ccosh_: entry (number) returns (complex float bin (27)); 101 102 i = 0; 103 goto csinhs; 104 105 ctanh_: entry (number) returns (complex float bin (27)); 106 107 i = -2; 108 goto csinhs; 109 110 end csin_; SOURCE FILES USED IN THIS COMPILATION. LINE NUMBER DATE MODIFIED NAME PATHNAME 0 10/03/83 1004.5 csin_.pl1 >spec>on>pl128d>csin_.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 21* 24 33 34 37 44 45 49* 50* 54* 55* 60 73 94* 96* abs builtin function dcl 13 ref 24 37 b 000102 automatic complex float bin(27) dcl 12 set ref 62* 63* 66 73* 73 75 code_ 000014 constant entry external dcl 17 ref 27 39 68 cos builtin function dcl 13 ref 45 cosh builtin function dcl 13 ref 34 coshy 000107 automatic float bin(27) dcl 13 set ref 29* 34* 49 55 62 cosx 000105 automatic float bin(27) dcl 13 set ref 45* 50 54 62 i 000110 automatic fixed bin(17,0) dcl 13 set ref 19* 47 52 57* 57 60 65 80* 86* 92* 102* 107* imag builtin function dcl 13 set ref 24 33 34 50* 55* 63* 94 96* number parameter complex float bin(27) dcl 12 ref 10 21 78 84 90 94 96 100 105 real builtin function dcl 13 set ref 37 44 45 49* 54* 62* 94* 96 sin builtin function dcl 13 ref 44 sinh builtin function dcl 13 ref 33 sinhy 000106 automatic float bin(27) dcl 13 set ref 29* 33* 50 54 63 sinx 000104 automatic float bin(27) dcl 13 set ref 44* 49 55 63 70 NAMES DECLARED BY EXPLICIT CONTEXT. ccos_ 000226 constant entry external dcl 78 ccosh_ 000272 constant entry external dcl 100 csin_ 000014 constant entry external dcl 10 csinh_ 000251 constant entry external dcl 90 csinhs 000260 constant label dcl 94 ref 103 108 csins 000023 constant label dcl 21 set ref 82 88 ctan_ 000237 constant entry external dcl 84 ctanh_ 000303 constant entry external dcl 105 ret 000220 constant label dcl 75 ref 65 test 000026 constant label dcl 24 ref 98 THERE WERE NO NAMES DECLARED BY CONTEXT OR IMPLICATION. STORAGE REQUIREMENTS FOR THIS PROGRAM. Object Text Link Symbol Defs Static Start 0 0 406 424 313 416 Length 600 313 16 137 73 0 BLOCK NAME STACK SIZE TYPE WHY NONQUICK/WHO SHARES STACK FRAME csin_ 116 external procedure is an external procedure. STORAGE FOR AUTOMATIC VARIABLES. STACK FRAME LOC IDENTIFIER BLOCK NAME csin_ 000100 a csin_ 000102 b csin_ 000104 sinx csin_ 000105 cosx csin_ 000106 sinhy csin_ 000107 coshy csin_ 000110 i csin_ THE FOLLOWING EXTERNAL OPERATORS ARE USED BY THIS PROGRAM. call_ext_out return dvcfl1_2 ext_entry sin cos THE FOLLOWING EXTERNAL ENTRIES ARE CALLED BY THIS PROGRAM. code_ sinh_ sinh_$cosh_ NO EXTERNAL VARIABLES ARE USED BY THIS PROGRAM. LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC 10 000010 19 000021 21 000023 24 000026 27 000033 29 000044 31 000047 33 000050 34 000061 37 000072 39 000077 41 000110 44 000114 45 000120 47 000124 49 000126 50 000131 51 000134 52 000135 54 000136 55 000141 57 000145 60 000147 62 000156 63 000161 65 000165 66 000167 68 000172 70 000203 73 000213 75 000220 78 000224 80 000233 82 000234 84 000235 86 000244 88 000246 90 000247 92 000256 94 000260 96 000265 98 000267 100 000270 102 000277 103 000300 105 000301 107 000310 108 000312 ----------------------------------------------------------- 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