Browse Source

Merge branch 'develop' into hotfix-0.1alpha2.4

tags/v0.1alpha2.4^2
Xianyi 15 years ago
parent
commit
74fa790354
6 changed files with 57 additions and 5 deletions
  1. +7
    -0
      Makefile
  2. +11
    -0
      common_interface.h
  3. +9
    -1
      kernel/x86/xdot.S
  4. +9
    -1
      kernel/x86/zdot.S
  5. +1
    -3
      kernel/x86/zdot_sse2.S
  6. +20
    -0
      openblas_config_template.h

+ 7
- 0
Makefile View File

@@ -125,6 +125,13 @@ endif
#Save the config files for installation
cp Makefile.conf Makefile.conf_last
cp config.h config_last.h
ifdef QUAD_PRECISION
echo "#define QUAD_PRECISION">> config_last.h
endif
ifeq ($(EXPRECISION), 1)
echo "#define EXPRECISION">> config_last.h
endif
##
ifdef DYNAMIC_ARCH
$(MAKE) -C kernel commonlibs || exit 1
for d in $(DYNAMIC_CORE) ; \


+ 11
- 0
common_interface.h View File

@@ -38,6 +38,11 @@

#ifndef ASSEMBLER

#ifdef __cplusplus
extern "C" {
/* Assume C declarations for C++ */
#endif /* __cplusplus */

int BLASFUNC(xerbla)(char *, blasint *info, blasint);

FLOATRET BLASFUNC(sdot) (blasint *, float *, blasint *, float *, blasint *);
@@ -733,4 +738,10 @@ xdouble BLASFUNC(qlamch)(char *);
FLOATRET BLASFUNC(slamc3)(float *, float *);
double BLASFUNC(dlamc3)(double *, double *);
xdouble BLASFUNC(qlamc3)(xdouble *, xdouble *);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif

+ 9
- 1
kernel/x86/xdot.S View File

@@ -307,7 +307,11 @@
popl %ebx
popl %esi
popl %edi
#if defined(F_INTERFACE) && defined(RETURN_BY_STACK)
ret $0x4
#else
ret
#endif
ALIGN_3

.L88:
@@ -326,6 +330,10 @@
popl %ebx
popl %esi
popl %edi
ret

#if defined(F_INTERFACE) && defined(RETURN_BY_STACK)
ret $0x4
#else
ret
#endif
EPILOGUE

+ 9
- 1
kernel/x86/zdot.S View File

@@ -283,7 +283,11 @@
popl %ebx
popl %esi
popl %edi
#if defined(DOUBLE) || defined(XDOUBLE)
ret $0x4
#else
ret
#endif
ALIGN_3

.L88:
@@ -305,6 +309,10 @@
popl %ebx
popl %esi
popl %edi
ret

#if defined(DOUBLE) || defined(XDOUBLE)
ret $0x4
#else
ret
#endif
EPILOGUE

+ 1
- 3
kernel/x86/zdot_sse2.S View File

@@ -1542,7 +1542,5 @@
popl %esi
popl %edi
/*remove the hidden return value address from the stack.*/
popl %ecx
xchgl %ecx, 0(%esp)
ret
ret $0x4
EPILOGUE

+ 20
- 0
openblas_config_template.h View File

@@ -6,6 +6,16 @@
#define BLASFUNC(FUNC) FUNC
#endif

#ifdef QUAD_PRECISION
typedef struct {
unsigned long x[2];
} xdouble;
#elif defined EXPRECISION
#define xdouble long double
#else
#define xdouble double
#endif

#if defined(OS_WINDOWS) && defined(__64BIT__)
typedef long long BLASLONG;
typedef unsigned long long BLASULONG;
@@ -19,3 +29,13 @@ typedef BLASLONG blasint;
#else
typedef int blasint;
#endif

#if defined(XDOUBLE) || defined(DOUBLE)
#define FLOATRET FLOAT
#else
#ifdef NEED_F2CCONV
#define FLOATRET double
#else
#define FLOATRET float
#endif
#endif

Loading…
Cancel
Save