~ubuntu-branches/ubuntu/trusty/atlas/trusty

« back to all changes in this revision

Viewing changes to interfaces/blas/C/src/cblas_isamax.c

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot
  • Date: 2013-07-27 14:26:05 UTC
  • mfrom: (18.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130727142605-5rh3p972h1whdo99
Tags: 3.10.1-2
* Allow the generic package to build on machines with CPU throttling
  enabled. Otherwise the package FTBFS on some buildds (e.g. biber).
  Implementation is done by reactivating the "-Si cputhrchk 0" flag
  (cpu-throtthling-check.diff), and using it in debian/rules.
* Add architectural defaults for armel and mips.
* armhf.diff: do not enforce 32-registers FPU for Fortran

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
38
38
 
39
39
int cblas_isamax(const int N, const float *X, const int incX)
40
40
{
41
 
   if (N > 0)
42
 
   {
43
 
      if (incX < 0) return(ATL_isamax(N, X, -incX));
44
 
      else return(ATL_isamax(N, X, incX));
45
 
   }
46
 
   else return(0);
 
41
   if (N > 0 && incX > 0)
 
42
     return(ATL_isamax(N, X, incX));
 
43
   return(0);
47
44
}