COMPILATION LISTING OF SEGMENT decimal_exp_ Compiled by: Multics PL/I Compiler, Release 28d, of September 14, 1983 Compiled at: Honeywell LCPD Phoenix, System M Compiled on: 10/03/83 1435.3 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 decimal_exp_: proc(number,exponent) returns(float dec(59)); 11 12 dcl (number,result) float dec(59), 13 14 (i,exp,exponent) fixed bin(35), 15 16 negative bit(1) aligned; 17 18 dcl (abs,index,sign,substr,unspec) builtin; 19 20 dcl code_ entry(fixed bin(15)); 21 22 if number=0.0e0 23 then if exponent>0 24 then return(number); 25 else do; 26 call code_(17-sign(exponent)); 27 28 return(number); 29 end; 30 31 if exponent=0 32 then return(1.0e0); 33 34 negative = exponent<0; 35 exp = abs(exponent); 36 37 result = number; 38 39 do i = index(unspec(exp),"1"b)+1 to 36; 40 result = result * result; 41 42 if substr(unspec(exp),i,1) 43 then result = result * number; 44 end; 45 46 if ^negative 47 then return(result); 48 else return(1.0e0/result); 49 50 end decimal_exp_; SOURCE FILES USED IN THIS COMPILATION. LINE NUMBER DATE MODIFIED NAME PATHNAME 0 10/03/83 1005.7 decimal_exp_.pl1 >spec>on>pl128d>decimal_exp_.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 18 ref 35 code_ 000010 constant entry external dcl 20 ref 26 exp 000121 automatic fixed bin(35,0) dcl 12 set ref 35* 39 42 exponent parameter fixed bin(35,0) dcl 12 ref 10 22 26 31 34 35 i 000120 automatic fixed bin(35,0) dcl 12 set ref 39* 42* index builtin function dcl 18 ref 39 negative 000122 automatic bit(1) dcl 12 set ref 34* 46 number parameter float dec(59) dcl 12 ref 10 22 22 28 37 42 result 000100 automatic float dec(59) dcl 12 set ref 37* 40* 40 40 42* 42 46 48 sign builtin function dcl 18 ref 26 substr builtin function dcl 18 ref 42 unspec builtin function dcl 18 ref 39 42 NAME DECLARED BY EXPLICIT CONTEXT. decimal_exp_ 000010 constant entry external dcl 10 THERE WERE NO NAMES DECLARED BY CONTEXT OR IMPLICATION. STORAGE REQUIREMENTS FOR THIS PROGRAM. Object Text Link Symbol Defs Static Start 0 0 204 216 152 214 Length 360 152 12 125 32 0 BLOCK NAME STACK SIZE TYPE WHY NONQUICK/WHO SHARES STACK FRAME decimal_exp_ 104 external procedure is an external procedure. STORAGE FOR AUTOMATIC VARIABLES. STACK FRAME LOC IDENTIFIER BLOCK NAME decimal_exp_ 000100 result decimal_exp_ 000120 i decimal_exp_ 000121 exp decimal_exp_ 000122 negative decimal_exp_ THE FOLLOWING EXTERNAL OPERATORS ARE USED BY THIS PROGRAM. r_l_a call_ext_out return sign ext_entry index_bs_1_eis THE FOLLOWING EXTERNAL ENTRIES ARE CALLED BY THIS PROGRAM. code_ NO EXTERNAL VARIABLES ARE USED BY THIS PROGRAM. LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC 10 000004 22 000015 26 000032 28 000045 31 000054 34 000063 35 000065 37 000072 39 000075 40 000107 42 000112 44 000123 46 000130 48 000140 ----------------------------------------------------------- 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