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

# AMODK -- Compute the modulus of a vector by a constant (generic).

procedure amodkl (a, b, c, npix)

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

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