aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/lz/aminkc.x
blob: a9b91e0e6fead6a7d97c211112c0fc96f8dd13b5 (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 aminkc (a, b, c, npix)

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

begin

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