Code beautification with uncrustify
[alexxy/gromacs.git] / src / gromacs / linearalgebra / gmx_blas.h
index e9ffbd72bd697535b314ddd4d3ded283aea6b21e..54190c4a65795175499e9892e9f064622e994a97 100644 (file)
@@ -1,33 +1,33 @@
 /*
- * 
+ *
  *                This source code is part of
- * 
+ *
  *                 G   R   O   M   A   C   S
- * 
+ *
  *          GROningen MAchine for Chemical Simulations
- * 
+ *
  * Written by David van der Spoel, Erik Lindahl, Berk Hess, and others.
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2008, The GROMACS development team,
  * check out http://www.gromacs.org for more information.
+
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
  * as published by the Free Software Foundation; either version 2
  * of the License, or (at your option) any later version.
- * 
+ *
  * If you want to redistribute modifications, please consider that
  * scientific software is very special. Version control is crucial -
  * bugs must be traceable. We will be happy to consider code for
  * inclusion in the official distribution, but derived work must not
  * be called official GROMACS. Details are found in the README & COPYING
  * files - if they are missing, get the official version at www.gromacs.org.
- * 
+ *
  * To help us fund GROMACS development, we humbly ask that you cite
  * the papers on the package - you can find them in the top README file.
- * 
+ *
  * For more info, check our website at http://www.gromacs.org
- * 
+ *
  * And Hey:
  * Gallium Rubidium Oxygen Manganese Argon Carbon Silicon
  */
  * Header definitions for the standard BLAS library.
  *
  * This is the subset of BLAS routines used for the
- * linear algebra operations in Gromacs. 
- * Do NOT use this for other purposes - we only provide this as a 
- * simple fallback/reference implementation when no optimized BLAS 
- * is present. If you need an implementation for your own code 
+ * linear algebra operations in Gromacs.
+ * Do NOT use this for other purposes - we only provide this as a
+ * simple fallback/reference implementation when no optimized BLAS
+ * is present. If you need an implementation for your own code
  * there are several much faster versions out there.
  *
  * All routines are compatible with the BLAS reference implementation,
@@ -73,137 +73,137 @@ extern "C" {
 
 /* Double precision versions */
 double
-F77_FUNC(dasum,DASUM)(int *n, double *dx, int *incx);
+    F77_FUNC(dasum, DASUM) (int *n, double *dx, int *incx);
 
 void
-F77_FUNC(daxpy,DAXPY)(int *n, double *da, double *dx, int *incx, double *dy, int *incy);
+    F77_FUNC(daxpy, DAXPY) (int *n, double *da, double *dx, int *incx, double *dy, int *incy);
 
 void
-F77_FUNC(dcopy,DCOPY)(int *n, double *dx, int *incx, double *dy, int *incy);
+    F77_FUNC(dcopy, DCOPY) (int *n, double *dx, int *incx, double *dy, int *incy);
 
 double
-F77_FUNC(ddot,DDOT)(int *n, double *dx, int *incx, double *dy, int *incy);
+    F77_FUNC(ddot, DDOT) (int *n, double *dx, int *incx, double *dy, int *incy);
 
 void
-F77_FUNC(dgemm,DGEMM)(const char *transa, const char *transb, int *m, int *n, int *k, 
-       double *alpha, double *a, int *lda, double *b, int *ldb, 
-       double *beta, double *c, int *ldc);
+    F77_FUNC(dgemm, DGEMM) (const char *transa, const char *transb, int *m, int *n, int *k,
+                            double *alpha, double *a, int *lda, double *b, int *ldb,
+                            double *beta, double *c, int *ldc);
 
 void
-F77_FUNC(dgemv,DGEMV)(const char *trans, int *m, int *n, double *alpha, double *a, int *lda,
-       double *x, int *incx, double *beta, double *y, int *incy);
+    F77_FUNC(dgemv, DGEMV) (const char *trans, int *m, int *n, double *alpha, double *a, int *lda,
+                            double *x, int *incx, double *beta, double *y, int *incy);
 
 void
-F77_FUNC(dger,DGER)(int *m, int *n, double *alpha, double *x, int *incx, 
-      double *y, int *incy, double *a, int *lda);
+    F77_FUNC(dger, DGER) (int *m, int *n, double *alpha, double *x, int *incx,
+                          double *y, int *incy, double *a, int *lda);
 
 double
-F77_FUNC(dnrm2,DNRM2)(int  *n, double *x, int *incx);
+    F77_FUNC(dnrm2, DNRM2) (int  *n, double *x, int *incx);
 
 void
-F77_FUNC(drot,DROT)(int *n, double *dx, int *incx, 
-      double *dy, int *incy, double *c, double *s);
+    F77_FUNC(drot, DROT) (int *n, double *dx, int *incx,
+                          double *dy, int *incy, double *c, double *s);
 
-void 
-F77_FUNC(dscal,DSCAL)(int *n, double *fact, double *dx, int *incx);
+void
+    F77_FUNC(dscal, DSCAL) (int *n, double *fact, double *dx, int *incx);
 
 void
-F77_FUNC(dswap,DSWAP)(int *n, double *dx, int *incx, double *dy, int *incy);
+    F77_FUNC(dswap, DSWAP) (int *n, double *dx, int *incx, double *dy, int *incy);
 
 void
-F77_FUNC(dsymv,DSYMV)(const char *uplo, int *n, double *alpha, double *a, int *lda,
-       double *x, int *incx, double *beta, double *y, int *incy);
+    F77_FUNC(dsymv, DSYMV) (const char *uplo, int *n, double *alpha, double *a, int *lda,
+                            double *x, int *incx, double *beta, double *y, int *incy);
 
 void
-F77_FUNC(dsyr2,DSYR2)(const char *uplo, int *n, double *alpha, double *x, int *incx,
-       double *y, int *incy, double *a, int *lda);
+    F77_FUNC(dsyr2, DSYR2) (const char *uplo, int *n, double *alpha, double *x, int *incx,
+                            double *y, int *incy, double *a, int *lda);
 
 void
-F77_FUNC(dsyr2k,DSYR2K)(const char *uplo, const char *trans, int *n, int *k, double *alpha, double *a,
-        int *lda, double *b, int *ldb, double *beta, double *c, int *ldc);
+    F77_FUNC(dsyr2k, DSYR2K) (const char *uplo, const char *trans, int *n, int *k, double *alpha, double *a,
+                              int *lda, double *b, int *ldb, double *beta, double *c, int *ldc);
 
-void 
-F77_FUNC(dtrmm,DTRMM)(const char *side, const char *uplo, const char *transa, const char *diag, int *m, int *n, 
-       double *alpha, double *a, int *lda, double *b, int *ldb);
+void
+    F77_FUNC(dtrmm, DTRMM) (const char *side, const char *uplo, const char *transa, const char *diag, int *m, int *n,
+                            double *alpha, double *a, int *lda, double *b, int *ldb);
 
-void 
-F77_FUNC(dtrmv,DTRMV)(const char *uplo, const char *trans, const char *diag, int *n, 
-       double *a, int *lda, double *x, int *incx);
+void
+    F77_FUNC(dtrmv, DTRMV) (const char *uplo, const char *trans, const char *diag, int *n,
+                            double *a, int *lda, double *x, int *incx);
 
 void
-F77_FUNC(dtrsm,DTRSM)(const char *side, const char *uplo, const char *transa, const char *diag, int *m, int *n,
-       double *alpha, double *a,int *lda, double *b, int *ldb);
+    F77_FUNC(dtrsm, DTRSM) (const char *side, const char *uplo, const char *transa, const char *diag, int *m, int *n,
+                            double *alpha, double *a, int *lda, double *b, int *ldb);
 
 int
-F77_FUNC(idamax,IDAMAX)(int *n, double *dx, int *incx);
+    F77_FUNC(idamax, IDAMAX) (int *n, double *dx, int *incx);
 
 
 
 /* Single precision versions */
 float
-F77_FUNC(sasum,SASUM)(int *n, float *dx, int *incx);
+    F77_FUNC(sasum, SASUM) (int *n, float *dx, int *incx);
 
 void
-F77_FUNC(saxpy,SAXPY)(int *n, float *da, float *dx, int *incx, float *dy, int *incy);
+    F77_FUNC(saxpy, SAXPY) (int *n, float *da, float *dx, int *incx, float *dy, int *incy);
 
 void
-F77_FUNC(scopy,SCOPY)(int *n, float *dx, int *incx, float *dy, int *incy);
+    F77_FUNC(scopy, SCOPY) (int *n, float *dx, int *incx, float *dy, int *incy);
 
 float
-F77_FUNC(sdot,SDOT)(int *n, float *dx, int *incx, float *dy, int *incy);
+    F77_FUNC(sdot, SDOT) (int *n, float *dx, int *incx, float *dy, int *incy);
 
 void
-F77_FUNC(sgemm,SGEMM)(const char *transa, const char *transb, int *m, int *n, int *k, 
-       float *alpha, float *a, int *lda, float *b, int *ldb, 
-       float *beta, float *c, int *ldc);
+    F77_FUNC(sgemm, SGEMM) (const char *transa, const char *transb, int *m, int *n, int *k,
+                            float *alpha, float *a, int *lda, float *b, int *ldb,
+                            float *beta, float *c, int *ldc);
 
 void
-F77_FUNC(sgemv,SGEMV)(const char *trans, int *m, int *n, float *alpha, float *a, int *lda,
-       float *x, int *incx, float *beta, float *y, int *incy);
+    F77_FUNC(sgemv, SGEMV) (const char *trans, int *m, int *n, float *alpha, float *a, int *lda,
+                            float *x, int *incx, float *beta, float *y, int *incy);
 
 void
-F77_FUNC(sger,SGER)(int *m, int *n, float *alpha, float *x, int *incx, 
-      float *y, int *incy, float *a, int *lda);
+    F77_FUNC(sger, SGER) (int *m, int *n, float *alpha, float *x, int *incx,
+                          float *y, int *incy, float *a, int *lda);
 
 float
-F77_FUNC(snrm2,SNRM2)(int  *n, float *x, int *incx);
+    F77_FUNC(snrm2, SNRM2) (int  *n, float *x, int *incx);
 
 void
-F77_FUNC(srot,SROT)(int *n, float *dx, int *incx, 
-      float *dy, int *incy, float *c, float *s);
+    F77_FUNC(srot, SROT) (int *n, float *dx, int *incx,
+                          float *dy, int *incy, float *c, float *s);
 
-void 
-F77_FUNC(sscal,SSCAL)(int *n, float *fact, float *dx, int *incx);
+void
+    F77_FUNC(sscal, SSCAL) (int *n, float *fact, float *dx, int *incx);
 
 void
-F77_FUNC(sswap,SSWAP)(int *n, float *dx, int *incx, float *dy, int *incy);
+    F77_FUNC(sswap, SSWAP) (int *n, float *dx, int *incx, float *dy, int *incy);
 
 void
-F77_FUNC(ssymv,SSYMV)(const char *uplo, int *n, float *alpha, float *a, int *lda,
-       float *x, int *incx, float *beta, float *y, int *incy);
+    F77_FUNC(ssymv, SSYMV) (const char *uplo, int *n, float *alpha, float *a, int *lda,
+                            float *x, int *incx, float *beta, float *y, int *incy);
 
 void
-F77_FUNC(ssyr2,SSYR2)(const char *uplo, int *n, float *alpha, float *x, int *incx,
-       float *y, int *incy, float *a, int *lda);
+    F77_FUNC(ssyr2, SSYR2) (const char *uplo, int *n, float *alpha, float *x, int *incx,
+                            float *y, int *incy, float *a, int *lda);
 
 void
-F77_FUNC(ssyr2k,SSYR2K)(const char *uplo, const char *trans, int *n, int *k, float *alpha, float *a,
-        int *lda, float *b, int *ldb, float *beta, float *c, int *ldc);
+    F77_FUNC(ssyr2k, SSYR2K) (const char *uplo, const char *trans, int *n, int *k, float *alpha, float *a,
+                              int *lda, float *b, int *ldb, float *beta, float *c, int *ldc);
 
-void 
-F77_FUNC(strmm,STRMM)(const char *side, const char *uplo, const char *transa, const char *diag, int *m, int *n, 
-       float *alpha, float *a, int *lda, float *b, int *ldb);
+void
+    F77_FUNC(strmm, STRMM) (const char *side, const char *uplo, const char *transa, const char *diag, int *m, int *n,
+                            float *alpha, float *a, int *lda, float *b, int *ldb);
 
-void 
-F77_FUNC(strmv,STRMV)(const char *uplo, const char *trans, const char *diag, int *n, 
-       float *a, int *lda, float *x, int *incx);
+void
+    F77_FUNC(strmv, STRMV) (const char *uplo, const char *trans, const char *diag, int *n,
+                            float *a, int *lda, float *x, int *incx);
 
 void
-F77_FUNC(strsm,STRSM)(const char *side, const char *uplo, const char *transa, const char *diag, int *m, int *n,
-       float *alpha, float *a,int *lda, float *b, int *ldb);
+    F77_FUNC(strsm, STRSM) (const char *side, const char *uplo, const char *transa, const char *diag, int *m, int *n,
+                            float *alpha, float *a, int *lda, float *b, int *ldb);
 
 int
-F77_FUNC(isamax,ISAMAX)(int *n, float *dx, int *incx);
+    F77_FUNC(isamax, ISAMAX) (int *n, float *dx, int *incx);
 
 
 #ifdef __cplusplus