Browse Source

more debugging

pull/2594/head
Martin Kroeker GitHub 6 years ago
parent
commit
b5d3e46e69
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      common_x86_64.h

+ 2
- 1
common_x86_64.h View File

@@ -202,6 +202,7 @@ extern unsigned int blas_quick_divide_table[];
static __inline unsigned int blas_quickdivide(unsigned int x, unsigned int y){

unsigned int result;
unsigned int yy=y;

if (y <= 1) return x;

@@ -213,7 +214,7 @@ static __inline unsigned int blas_quickdivide(unsigned int x, unsigned int y){
#endif
y = blas_quick_divide_table[y];
fprintf(stderr,"y returned from divide table for %d is %d\n",yy,y);
__asm__ __volatile__ ("mull %0" :"=d" (result), "+a"(x) : "0" (y));
fprintf(stderr,"quickdivide returning %d\n",result);
return result;


Loading…
Cancel
Save