COMPILATION LISTING OF SEGMENT tanh_ Compiled by: Multics PL/I Compiler, Release 28d, of September 14, 1983 Compiled at: Honeywell LCPD Phoenix, System M Compiled on: 10/03/83 1406.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 /* modified by A. Downing on 07/16/73 to use round builtin */ 11 12 tanh_: procedure (number) returns (float binary (27)); 13 14 /* compute the hyperbolic tangent of a single-precision floating-point number */ 15 declare (number, n, r) float binary (27), 16 (f, p, q) float binary (63); 17 dcl (abs, exp, round) builtin; 18 n = number; 19 f = abs (n); 20 if f >= 0.55e0 then if f >= 10.5e0 then f = 1.e0; else large: do; 21 r = f + f; 22 f = exp (r); 23 f = (f - 1.e0) / (f + 1.e0); 24 end large; else if f >= 5.e-5 then small: do; 25 p = f*f; 26 q = (((0.2480158730158730159e-4 * p + 0.1388888888888888889e-2) * p + 0.4166666666666666667e-1) * p 27 + 0.5e0) * p + 1.e0; 28 f = ((((0.2755731922398589065e-5 * p + 0.1984126984126984127e-3) * p 29 + 0.8333333333333333333e-2)* p + 0.1666666666666666667e0) * p + 1.e0) * f / q; 30 end small; 31 r = round (f, 28); 32 if n < 0.0e0 then r = -r; 33 return (r); 34 end tanh_; SOURCE FILES USED IN THIS COMPILATION. LINE NUMBER DATE MODIFIED NAME PATHNAME 0 10/03/83 1005.1 tanh_.pl1 >spec>on>pl128d>tanh_.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. abs builtin function dcl 17 ref 19 exp builtin function dcl 17 ref 22 f 000102 automatic float bin(63) dcl 15 set ref 19* 20 20 20* 21 21 22* 23* 23 23 24 25 25 28* 28 31 n 000100 automatic float bin(27) dcl 15 set ref 18* 19 32 number parameter float bin(27) dcl 15 ref 12 18 p 000104 automatic float bin(63) dcl 15 set ref 25* 26 26 26 26 28 28 28 28 q 000106 automatic float bin(63) dcl 15 set ref 26* 28 r 000101 automatic float bin(27) dcl 15 set ref 21* 22 31* 32* 32 33 round builtin function dcl 17 ref 31 NAMES DECLARED BY EXPLICIT CONTEXT. large 000054 constant label dcl 20 small 000074 constant label dcl 24 tanh_ 000030 constant entry external dcl 12 THERE WERE NO NAMES DECLARED BY CONTEXT OR IMPLICATION. STORAGE REQUIREMENTS FOR THIS PROGRAM. Object Text Link Symbol Defs Static Start 0 0 164 174 141 174 Length 332 141 10 122 23 0 BLOCK NAME STACK SIZE TYPE WHY NONQUICK/WHO SHARES STACK FRAME tanh_ 106 external procedure is an external procedure. STORAGE FOR AUTOMATIC VARIABLES. STACK FRAME LOC IDENTIFIER BLOCK NAME tanh_ 000100 n tanh_ 000101 r tanh_ 000102 f tanh_ 000104 p tanh_ 000106 q tanh_ THE FOLLOWING EXTERNAL OPERATORS ARE USED BY THIS PROGRAM. return ext_entry round_fl exp NO EXTERNAL ENTRIES ARE CALLED BY THIS PROGRAM. NO EXTERNAL VARIABLES ARE USED BY THIS PROGRAM. LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC 12 000024 18 000035 19 000040 20 000043 21 000054 22 000057 23 000062 24 000070 24 000071 25 000074 26 000077 28 000110 31 000124 32 000130 33 000135 ----------------------------------------------------------- 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