mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-30 15:41:12 +00:00
bit more concise
This commit is contained in:
parent
eb4486a7ac
commit
f43106017f
1 changed files with 3 additions and 4 deletions
7
fold.c
7
fold.c
|
@ -537,11 +537,10 @@ static GMQCC_INLINE ast_expression *fold_op_xor(fold_t *fold, ast_value *a, ast_
|
|||
if (fold_can_2(a, b))
|
||||
return fold_constgen_float(fold, (qcfloat_t)(((qcint_t)fold_immvalue_float(a)) ^ ((qcint_t)fold_immvalue_float(b))));
|
||||
} else {
|
||||
if (isvector(b)) {
|
||||
if (fold_can_2(a, b))
|
||||
if (fold_can_2(a, b)) {
|
||||
if (isvector(b))
|
||||
return fold_constgen_vector(fold, vec3_xor(fold_immvalue_vector(a), fold_immvalue_vector(b)));
|
||||
} else {
|
||||
if (fold_can_2(a, b))
|
||||
else
|
||||
return fold_constgen_vector(fold, vec3_xorvf(fold_immvalue_vector(a), fold_immvalue_float(b)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue