Skip to content

Commit 89091e6

Browse files
authored
Merge pull request #2645 from martin-frbg/misc_fixes
Miscellaneous fixes
2 parents c3574ff + 13c2888 commit 89091e6

File tree

3 files changed

+7
-1410
lines changed

3 files changed

+7
-1410
lines changed

common_x86_64.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static void __inline blas_lock(volatile BLASULONG *address){
8080
#endif
8181

8282
do {
83-
while (*address) {YIELDING;};
83+
while (*address) {YIELDING;}
8484

8585
#ifndef C_MSVC
8686
__asm__ __volatile__(
@@ -199,9 +199,9 @@ static __inline BLASLONG blas_quickdivide(BLASLONG x, BLASLONG y){
199199
#else
200200
extern unsigned int blas_quick_divide_table[];
201201

202-
static __inline int blas_quickdivide(unsigned int x, unsigned int y){
202+
static __inline unsigned int blas_quickdivide(unsigned int x, unsigned int y){
203203

204-
unsigned int result;
204+
volatile unsigned int result;
205205

206206
if (y <= 1) return x;
207207

@@ -215,7 +215,6 @@ static __inline int blas_quickdivide(unsigned int x, unsigned int y){
215215
y = blas_quick_divide_table[y];
216216

217217
__asm__ __volatile__ ("mull %0" :"=d" (result), "+a"(x) : "0" (y));
218-
219218
return result;
220219
}
221220
#endif

0 commit comments

Comments
 (0)