mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +00:00
Fixed GNU inline assembly for Clang
This commit is contained in:
parent
32af6cb0cf
commit
39e2ebe425
1 changed files with 8 additions and 8 deletions
|
@ -41,7 +41,7 @@ static inline SDWORD Scale (SDWORD a, SDWORD b, SDWORD c)
|
||||||
: "a,a,a,a,a,a" (a),
|
: "a,a,a,a,a,a" (a),
|
||||||
"m,r,m,r,d,d" (b),
|
"m,r,m,r,d,d" (b),
|
||||||
"r,r,m,m,r,m" (c)
|
"r,r,m,m,r,m" (c)
|
||||||
: "%cc"
|
: "cc"
|
||||||
);
|
);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
@ -59,7 +59,7 @@ static inline SDWORD MulScale (SDWORD a, SDWORD b, SDWORD c)
|
||||||
: "a,a,a,a" (a),
|
: "a,a,a,a" (a),
|
||||||
"m,r,m,r" (b),
|
"m,r,m,r" (b),
|
||||||
"c,c,I,I" (c)
|
"c,c,I,I" (c)
|
||||||
: "%cc"
|
: "cc"
|
||||||
);
|
);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -210,7 +210,7 @@ static inline SDWORD DivScale (SDWORD a, SDWORD b, SDWORD c)
|
||||||
: "a" (lo),
|
: "a" (lo),
|
||||||
"d" (hi),
|
"d" (hi),
|
||||||
"r" (b)
|
"r" (b)
|
||||||
: "%cc");
|
: "cc");
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -226,7 +226,7 @@ static inline SDWORD DivScale1 (SDWORD a, SDWORD b)
|
||||||
"=&d,d" (dummy)
|
"=&d,d" (dummy)
|
||||||
: "a,a" (a),
|
: "a,a" (a),
|
||||||
"r,m" (b)
|
"r,m" (b)
|
||||||
: "%cc");
|
: "cc");
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -241,7 +241,7 @@ static inline SDWORD DivScale1 (SDWORD a, SDWORD b)
|
||||||
: "a,a" (a<<s), \
|
: "a,a" (a<<s), \
|
||||||
"d,d" (a>>(32-s)), \
|
"d,d" (a>>(32-s)), \
|
||||||
"r,m" (b) \
|
"r,m" (b) \
|
||||||
: "%cc"); \
|
: "cc"); \
|
||||||
return result; \
|
return result; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -287,7 +287,7 @@ static inline SDWORD DivScale32 (SDWORD a, SDWORD b)
|
||||||
"=d,d" (dummy)
|
"=d,d" (dummy)
|
||||||
: "d,d" (a),
|
: "d,d" (a),
|
||||||
"r,m" (b)
|
"r,m" (b)
|
||||||
: "%cc");
|
: "cc");
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -313,7 +313,7 @@ static inline void clearbufshort (void *buff, unsigned int count, WORD clear)
|
||||||
"rep stosw"
|
"rep stosw"
|
||||||
:"=D" (buff), "=c" (count)
|
:"=D" (buff), "=c" (count)
|
||||||
:"D" (buff), "c" (count), "a" (clear|(clear<<16))
|
:"D" (buff), "c" (count), "a" (clear|(clear<<16))
|
||||||
:"%cc");
|
:"cc");
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline SDWORD ksgn (SDWORD a)
|
static inline SDWORD ksgn (SDWORD a)
|
||||||
|
@ -327,6 +327,6 @@ static inline SDWORD ksgn (SDWORD a)
|
||||||
"adc $0,%1"
|
"adc $0,%1"
|
||||||
:"=r" (dummy), "=r" (result)
|
:"=r" (dummy), "=r" (result)
|
||||||
:"0" (a)
|
:"0" (a)
|
||||||
:"%cc");
|
:"cc");
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue