aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/lz/aminks.x
blob: 28d1b35851bf9f73d1d235dc34a4f508f07cbf25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

# AMINK -- Compute the minimum of a constant and a vector (generic).

procedure aminks (a, b, c, npix)

short	a[ARB]
short	b
short	c[ARB]
int	npix, i

begin

	do i = 1, npix
		c[i] = min (a[i], b)
end