Add shortcuts for (small) cases that do not need expensive buffer allocation
This commit is contained in:
parent
734bd265a8
commit
f84197c1a7
|
@ -188,6 +188,12 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo,
|
||||||
|
|
||||||
if (n == 0) return;
|
if (n == 0) return;
|
||||||
|
|
||||||
|
if (incx == 1 && trans == 0 && n < 50) {
|
||||||
|
buffer = NULL;
|
||||||
|
(trsv[(trans<<2) | (uplo<<1) | unit])(n, a, lda, x, incx, buffer);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
IDEBUG_START;
|
IDEBUG_START;
|
||||||
|
|
||||||
FUNCTION_PROFILE_START();
|
FUNCTION_PROFILE_START();
|
||||||
|
|
|
@ -199,6 +199,12 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo,
|
||||||
|
|
||||||
if (n == 0) return;
|
if (n == 0) return;
|
||||||
|
|
||||||
|
if (incx == 1 && trans == 0 && n < 50) {
|
||||||
|
buffer = NULL;
|
||||||
|
(trsv[(trans<<2) | (uplo<<1) | unit])(n, a, lda, x, incx, buffer);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
IDEBUG_START;
|
IDEBUG_START;
|
||||||
|
|
||||||
FUNCTION_PROFILE_START();
|
FUNCTION_PROFILE_START();
|
||||||
|
|
Loading…
Reference in New Issue