~ubuntu-branches/ubuntu/vivid/atlas/vivid

« back to all changes in this revision

Viewing changes to src/blas/gemm/ATL_cNCmmIJK_c.c

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot
  • Date: 2013-06-11 15:58:16 UTC
  • mfrom: (1.1.3 upstream)
  • mto: (2.2.21 experimental)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: package-import@ubuntu.com-20130611155816-b72z8f621tuhbzn0
Tags: upstream-3.10.1
Import upstream version 3.10.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *             Automatically Tuned Linear Algebra Software v3.8.4
 
2
 *             Automatically Tuned Linear Algebra Software v3.10.1
3
3
 *                    (C) Copyright 1999 R. Clint Whaley
4
4
 *
5
5
 * Redistribution and use in source and binary forms, with or without
197
197
int Mjoin(PATL,NCmmIJK_c)
198
198
   (const enum ATLAS_TRANS TA, const enum ATLAS_TRANS TB,
199
199
    const int M, const int N, const int K, const SCALAR alpha,
200
 
    const TYPE *A, const int lda, const TYPE *B, const int ldb,
201
 
    const SCALAR beta, TYPE *C, const int ldc)
 
200
    const TYPE *A, const int lda0, const TYPE *B, const int ldb0,
 
201
    const SCALAR beta, TYPE *C, const int ldc0)
202
202
/*
203
203
 * IJK loop-ordered matmul with no matrix copy
204
204
 */
205
205
{
 
206
   const size_t lda=lda0, ldb=ldb0, ldc=ldc0;
 
207
   size_t incAk, incAm, incAn, incBk, incBm, incBn;
206
208
   const int Mb = M / MB, Nb = N / NB, Kb = K / KB;
207
209
   const int mr = M - Mb*MB, nr = N - Nb*NB, kr = K - Kb*KB;
208
 
   int incAk, incAm, incAn, incBk, incBm, incBn;
209
 
   const int incCn = ldc*(NB<<1), incCm = (MB<<1) - Nb * incCn;
 
210
   const size_t incCn = ldc*(NB<<1), incCm = (MB<<1) - Nb * incCn;
210
211
   int i, j, k;
211
212
   const TYPE *a=A, *b=B;
212
213
   const TYPE ralpha = *alpha, rbeta = *beta;