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/xtools/xtimleneq.x | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pkg/xtools/xtimleneq.x (limited to 'pkg/xtools/xtimleneq.x') diff --git a/pkg/xtools/xtimleneq.x b/pkg/xtools/xtimleneq.x new file mode 100644 index 00000000..ece51695 --- /dev/null +++ b/pkg/xtools/xtimleneq.x @@ -0,0 +1,22 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include + +# XT_IMLENEQ -- Determine if the lengths of the common image dimensions +# are equal. + +bool procedure xt_imleneq (im1, im2) + +pointer im1 # First IMIO pointer +pointer im2 # Second IMIO pointer + +int i, ndim + +begin + ndim = min (IM_NDIM (im1), IM_NDIM (im2)) + do i = 1, ndim { + if (IM_LEN (im1, i) != IM_LEN (im2, i)) + return (FALSE) + } + return (TRUE) +end -- cgit