From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- sys/vops/achtgen/achti.x | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 sys/vops/achtgen/achti.x (limited to 'sys/vops/achtgen/achti.x') diff --git a/sys/vops/achtgen/achti.x b/sys/vops/achtgen/achti.x new file mode 100644 index 00000000..49df790e --- /dev/null +++ b/sys/vops/achtgen/achti.x @@ -0,0 +1,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 achti (a, b, nelem, ty_b) + +int a[ARB] +char b[ARB] +int nelem +int ty_b + +begin + switch (ty_b) { + case TY_UBYTE: + call achtib (a, b, nelem) + case TY_USHORT: + call achtiu (a, b, nelem) + case TY_CHAR: + call achtic (a, b, nelem) + case TY_SHORT: + call achtis (a, b, nelem) + case TY_INT, TY_POINTER, TY_STRUCT: + call achtii (a, b, nelem) + case TY_LONG: + call achtil (a, b, nelem) + case TY_REAL: + call achtir (a, b, nelem) + case TY_DOUBLE: + call achtid (a, b, nelem) + case TY_COMPLEX: + call achtix (a, b, nelem) + } +end -- cgit