Browse Source

Merge branch 'develop' into cmake

Conflicts:
	driver/others/memory.c
tags/v0.2.15^2
Zhang Xianyi 10 years ago
parent
commit
2feef49fa8
2 changed files with 7 additions and 0 deletions
  1. +3
    -0
      driver/others/memory.c
  2. +4
    -0
      interface/imax.c

+ 3
- 0
driver/others/memory.c View File

@@ -142,6 +142,9 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#if defined(_MSC_VER) && !defined(__clang__)
#define CONSTRUCTOR __cdecl
#define DESTRUCTOR __cdecl
#elif defined(OS_DARWIN) && defined(C_GCC)
#define CONSTRUCTOR __attribute__ ((constructor))
#define DESTRUCTOR __attribute__ ((destructor))
#else
#define CONSTRUCTOR __attribute__ ((constructor(101)))
#define DESTRUCTOR __attribute__ ((destructor(101)))


+ 4
- 0
interface/imax.c View File

@@ -136,6 +136,8 @@ blasint NAME(blasint *N, FLOAT *x, blasint *INCX){

ret = (blasint)MAX_K(n, x, incx);

if(ret > n) ret=n;

FUNCTION_PROFILE_END(COMPSIZE, n, 0);

IDEBUG_END;
@@ -159,6 +161,8 @@ CBLAS_INDEX CNAME(blasint n, FLOAT *x, blasint incx){

ret = MAX_K(n, x, incx);

if (ret > n) ret=n;

if (ret) ret --;

FUNCTION_PROFILE_END(COMPSIZE, n, 0);


Loading…
Cancel
Save