aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/lz/aupxs.x
blob: 82996096cde6ff3b09db004a0a3435151c719e49 (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.

# AUPX -- Unpack the real and imaginary components of a complex vector into
# two output vectors of some other type.

procedure aupxs (a, b, c, npix)

complex	a[ARB]			# input vector
short	b[ARB], c[ARB]	# output vectors
int	npix
int	i

begin
	do i = 1, npix {
		b[i] = real  (a[i])
		c[i] = aimag (a[i])
	}
end