From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- pkg/utilities/nttools/trebin/tuiset.x | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pkg/utilities/nttools/trebin/tuiset.x (limited to 'pkg/utilities/nttools/trebin/tuiset.x') diff --git a/pkg/utilities/nttools/trebin/tuiset.x b/pkg/utilities/nttools/trebin/tuiset.x new file mode 100644 index 00000000..427df021 --- /dev/null +++ b/pkg/utilities/nttools/trebin/tuiset.x @@ -0,0 +1,26 @@ +include "trebin.h" + +# tuiset -- set interpolation type +# +# +# P.E. Hodge, 18-Apr-88 Subroutine created + +procedure tuiset (func, i_func) + +char func[ARB] # i: interpolation function +int i_func # o: interpolation function code +#-- +int strncmp() + +begin + if (func[1] == 'n') + i_func = I_NEAREST + else if (func[1] == 'l') + i_func = I_LINEAR + else if (strncmp (func, "poly3", 5) == 0) + i_func = I_POLY3 + else if (func[1] == 's') + i_func = I_SPLINE + else + call error (1, "unknown interpolation function") +end -- cgit