MTH$JMIN0       JMIN0 and AJMIN0 functions                       21-AUG-1978 19:07:07   VAX-11 MACRO X0.3-11               Page   0

TABLE OF CONTENTS   



   (2)     100  HISTORY		; Detailed Current Edit History

   (3)     100  DECLARATIONS

   (4)     100  MTH$JMIN0, MTH$AJMIN0

MTH$JMIN0       JMIN0 and AJMIN0 functions                       21-AUG-1978 19:07:07   VAX-11 MACRO X0.3-11               Page   1

0-3                                                                                                                              (1)



                                     0000   100 	.TITLE	MTH$JMIN0	JMIN0 and AJMIN0 functions

                                     0000   200 	.IDENT	/0-3/		; File: MTHJMIN0.MAR

                                     0000   300 

                                     0000   400 ;

                                     0000   500 ; Copyright (C) 1977

                                     0000   600 ; Digital Equipment Corporation, Maynard, Massachusetts 01754

                                     0000   700 ;

                                     0000   800 ; This software is furnished under a license for use only on a single

                                     0000   900 ; computer  system  and  may be copied only with the inclusion of the

                                     0000  1000 ; above copyright notice. This software, or any other copies thereof,

                                     0000  1100 ; may not be provided or otherwise made available to any other person

                                     0000  1200 ; except for use on such system and to one who agree to these license 

                                     0000  1300 ; terms.  Title to  and  ownership of the software shall at all times 

                                     0000  1400 ; remain in DEC.

                                     0000  1500 ;

                                     0000  1600 ; The information in the software is subject to change without notice

                                     0000  1700 ; and should  not  be construed  as a commitment by Digital Equipment 

                                     0000  1800 ; Corporation.

                                     0000  1900 ;

                                     0000  2000 ; DEC assumes  no  responsibility  for the use or  reliability of its

                                     0000  2100 ; software on equipment which is not supplied by DEC.

                                     0000  2200 ;

                                     0000  2300 ;

                                     0000  2400 ; FACILITY: MATH LIBRARY

                                     0000  2500 ;++

                                     0000  2600 ; ABSTRACT:

                                     0000  2700 ;	This module contains the minimum value functions for

                                     0000  2800 ;	longword arguments.

                                     0000  2900 ;

                                     0000  3000 ;

                                     0000  3100 ;--

                                     0000  3200 ;

                                     0000  3300 ; VERSION: 0

                                     0000  3400 ;

                                     0000  3500 ; HISTORY:

                                     0000  3600 ;

                                     0000  3700 ; AUTHOR:

                                     0000  3800 ;	Jonathan M. Taylor, 12-JUL-77: Version 0

                                     0000  3900 ;

                                     0000  4000 ; MODIFIED BY:

                                     0000  4100 ;

                                     0000  4200 ;

                                     0000  4300 ;

MTH$JMIN0       JMIN0 and AJMIN0 functions                       21-AUG-1978 19:07:07   VAX-11 MACRO X0.3-11               Page   2

0-3             HISTORY  ; Detailed Current Edit History                                                                         (2)



                                     0000   100 	.SBTTL	HISTORY		; Detailed Current Edit History

                                     0000   200 

                                     0000   300 

                                     0000   400 ; Edit History for Version 0 of MTHJMIN0

                                     0000   500 ;

                                     0000   600 ; 0-3	- Fix access violation.  TNH 16-Aug-78

MTH$JMIN0       JMIN0 and AJMIN0 functions                       21-AUG-1978 19:07:07   VAX-11 MACRO X0.3-11               Page   3

0-3             DECLARATIONS                                                                                                     (3)



                                     0000   100 	.SBTTL	DECLARATIONS

                                     0000   200 

                                     0000   300 ;

                                     0000   400 ; INCLUDE FILES:

                                     0000   500 ;	oerr.mar

                                     0000   600 ;

                                     0000   700 

                                     0000   800 ;

                                     0000   900 ; EXTERNAL SYMBOLS:

                                     0000  1000 ;	NONE

                                     0000  1100 ;

                                     0000  1200 

                                     0000  1300 ;

                                     0000  1400 ; MACROS:

                                     0000  1500 ;	NONE

                                     0000  1600 ;

                                     0000  1700 

                                     0000  1800 ;

                                     0000  1900 ; PSECT DECLARATIONS:

                                 00000000  2000 	.PSECT	MTH$CODE	PIC, SHR, LONG, EXE, NOWRT

                                     0000  2100 

                                     0000  2200 ;

                                     0000  2300 ; EQUATED SYMBOLS:

                                     0000  2400 ;	NONE

                                     0000  2500 ;

                                     0000  2600 

                                     0000  2700 ;

                                     0000  2800 ; OWN STORAGE:

                                     0000  2900 ;	NONE

                                     0000  3000 ;

MTH$JMIN0       JMIN0 and AJMIN0 functions                       21-AUG-1978 19:07:07   VAX-11 MACRO X0.3-11               Page   4

0-3             MTH$JMIN0, MTH$AJMIN0                                                                                            (4)



                                     0000   100 	.SBTTL	MTH$JMIN0, MTH$AJMIN0

                                     0000   200 

                                     0000   300 ;++

                                     0000   400 ; FUNCTIONAL DESCRIPTION:

                                     0000   500 ;	Call routine MINL to compute the minimum of n arguments, n is

                                     0000   600 ;	greater than or equal to 1.

                                     0000   700 ;	Return the result converted to the proper type.

                                     0000   800 ;

                                     0000   900 ;

                                     0000  1000 ; CALLING SEQUENCE:

                                     0000  1100 ;	Minimum.wl.v =MTH$JMIN0 ({arg.rl.r})

                                     0000  1200 ;	Minimum.wf.v =MTH$AJMIN0 ({arg.rl.r})

                                     0000  1300 ;	

                                     0000  1400 ;

                                     0000  1500 ;

                                     0000  1600 ; INPUT PARAMETERS:

                                     0000  1700 ;	The n parameters are longword values and are call-by-reference.

                                     0000  1800 ;	

                                     0000  1900 ;

                                     0000  2000 ; IMPLICIT INPUTS:

                                     0000  2100 ;	NONE

                                     0000  2200 ;

                                     0000  2300 ; OUTPUT PARAMETERS:

                                     0000  2400 ;	NONE

                                     0000  2500 ;

                                     0000  2600 ; IMPLICIT OUTPUTS:

                                     0000  2700 ;	NONE

                                     0000  2800 ;

                                     0000  2900 ; COMPLETION CODES:

                                     0000  3000 ;	NONE

                                     0000  3100 ;

                                     0000  3200 ; SIDE EFFECTS:

                                     0000  3300 ;	NONE

                                     0000  3400 ;

                                     0000  3500 ;--

                                     0000  3600 

                                     0000  3700 

                                     0000  3800 

                                     0000  3900 

                               0000' 0000  4000 	.ENTRY	MTH$JMIN0,	^M<>

                          09     10  0002  4100 	BSB	MINL		; R0 = min arg

                                 04  0004  4200 	RET

                                     0005  4300 

                               0000' 0005  4400 	.ENTRY	MTH$AJMIN0,	^M<>

                          04     10  0007  4500 	BSB	MINL		; R0 = min arg

            50            50     4E  0009  4600 	CVTLF	R0, R0		; REAL*4 it

                                 04  000C  4700 	RET

                                     000D  4800 

                                     000D  4900 ;+

                                     000D  5000 ; MINL returns the smallest of the INTEGER*4 args.

                                     000D  5100 ;-

                                     000D  5200 

                                     000D  5300 MINL:

            51            6C     9A  000D  5400 	MOVZBL	(AP), R1		; R1 = number of args

                          8C     D5  0010  5500 	TSTL	(AP)+			; AP -> first arg adr

            50            9C     D0  0012  5600 1$:	MOVL	@(AP)+, R0		; get trial min

                          08     11  0015  5700 	BRB	3$			; check arg count

MTH$JMIN0       JMIN0 and AJMIN0 functions                       21-AUG-1978 19:07:07   VAX-11 MACRO X0.3-11               Page   5

0-3             MTH$JMIN0, MTH$AJMIN0                                                                                            (4)



            50         00 BC     D1  0017  5800 2$:	CMPL	@0(AP),R0		; if this arg is less then trial min

                          F5     19  001B  5900 	BLSS	1$			; then it becomes trial min

                          8C     D5  001D  6000 	TSTL	(AP)+			; else ignore it

            F5            51     F5  001F  6100 3$:	SOBGTR	R1, 2$			; check arg count

                                 05  0022  6200 	RSB

                                     0023  6300 

                                     0023  6400 

                                     0023  6500 	.END

MTH$JMIN0       JMIN0 and AJMIN0 functions                       21-AUG-1978 19:07:07   VAX-11 MACRO X0.3-11               Page   6

SYMBOL TABLE                                                                                                                     (4)



FOR$K_ERR_PREFX= 00000018            

MINL             0000000D R     02   

MTH$AJMIN0       00000005 RG    02   

MTH$JMIN0        00000000 RG    02   

MTH$K_ERR_PREFX= 00000016            

MTH__FLOOVEMAT = 00000058            

MTH__FLOUNDMAT = 00000059            

MTH__INVARG    = 00000051            

MTH__LOGZERNEG = 00000053            

MTH__SINSIGLOS = 00000057            

MTH__SQUROONEG = 00000054            

MTH__UNDEXP    = 00000052            

MTH__WRONUMARG = 00000050            





PROGRAM SECTION SYNOPSIS



.  ABS  .        00000000      00     NOPIC   USR   CON   ABS   LCL NOSHR NOEXE NORD  NOWRT BYTE  

. BLANK .        00000000      01     NOPIC   USR   CON   REL   LCL NOSHR   EXE   RD    WRT BYTE  

MTH$CODE         00000023      02       PIC   USR   CON   REL   LCL   SHR   EXE   RD  NOWRT LONG  





THERE WERE NO ERRORS OR WARNINGS.

27986. BYTES LEFT IN FREE MEMORY POOL.

OBJ$:MTHJMIN0,LIS$:MTHJMIN0/-SP=LIB$:S/ML,SRC$:P,MTHJMIN0

0 MLB DIR RDS - 0 GETS TO DEFINE 0 MACROS. 2 INTER. FILE WRITES. 

