示例#1
0
float cblas_sasum(const int N, const float *X, const int incX)
{
   if (N > 0)
   {
      if (incX < 0) return(ATL_sasum(N, X, -incX));
      else return(ATL_sasum(N, X, incX));
   }
   else return(0.0f);
}
示例#2
0
float cblas_sasum(const int N, const float *X, const int incX)
{
   if (N > 0 && incX > 0)
      return(ATL_sasum(N, X, incX));
   return(0.0f);
}