aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/achtgen/achtx.x
blob: c0d8e04d63f1b8c7c3d1d62b32d53060c11cd9b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

# ACHT_ -- Convert an array of type _ to some other datatype.
# Data types are BUcsilrdx.

procedure achtx (a, b, nelem, ty_b)

complex	a[ARB]
char	b[ARB]
int	nelem
int	ty_b

begin
	switch (ty_b) {
	case TY_UBYTE:
	    call achtxb (a, b, nelem)
	case TY_USHORT:
	    call achtxu (a, b, nelem)
	case TY_CHAR:
	    call achtxc (a, b, nelem)
	case TY_SHORT:
	    call achtxs (a, b, nelem)
	case TY_INT, TY_POINTER, TY_STRUCT:
	    call achtxi (a, b, nelem)
	case TY_LONG:
	    call achtxl (a, b, nelem)
	case TY_REAL:
	    call achtxr (a, b, nelem)
	case TY_DOUBLE:
	    call achtxd (a, b, nelem)
	case TY_COMPLEX:
	    call achtxx (a, b, nelem)
	}
end