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

# ASSQ -- Vector sum of squares.

real procedure assqi (a, npix)
real	sum

int	a[ARB]
int	npix
int	i

begin
	sum = 0
	do i = 1, npix
	    sum = sum + (a[i] ** 2)
	
	return (sum)
end