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

# AMOD -- Compute the modulus of two vectors (generic).

procedure amodi (a, b, c, npix)

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

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