mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-10-19 14:18:17 +02:00
tcg: Add tcg_signed_cond
Complimenting the existing tcg_unsigned_cond. Backports commit 923ed1750186591b04d7d61399f6d68b4e0608f2 from qemu
This commit is contained in:
parent
140058221d
commit
bbd87f9d73
@ -491,6 +491,12 @@ static inline TCGCond tcg_unsigned_cond(TCGCond c)
|
|||||||
return c & 2 ? (TCGCond)(c ^ 6) : c;
|
return c & 2 ? (TCGCond)(c ^ 6) : c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Create a "signed" version of an "unsigned" comparison. */
|
||||||
|
static inline TCGCond tcg_signed_cond(TCGCond c)
|
||||||
|
{
|
||||||
|
return c & 4 ? (TCGCond)(c ^ 6) : c;
|
||||||
|
}
|
||||||
|
|
||||||
/* Must a comparison be considered unsigned? */
|
/* Must a comparison be considered unsigned? */
|
||||||
static inline bool is_unsigned_cond(TCGCond c)
|
static inline bool is_unsigned_cond(TCGCond c)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user