aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/lz/amgsx.x
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vops/lz/amgsx.x')
-rw-r--r--sys/vops/lz/amgsx.x13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/vops/lz/amgsx.x b/sys/vops/lz/amgsx.x
new file mode 100644
index 00000000..c40834f4
--- /dev/null
+++ b/sys/vops/lz/amgsx.x
@@ -0,0 +1,13 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+# AMGS -- Return the square of the magnitude of two vectors.
+
+procedure amgsx (a, b, c, npix)
+
+complex a[ARB], b[ARB], c[ARB]
+int npix, i
+
+begin
+ do i = 1, npix
+ c[i] = a[i] ** 2 + b[i] ** 2
+end