vec3_not: be consistent with compile-time behavior here

This commit is contained in:
Wolfgang Bumiller 2013-11-12 16:05:54 +01:00
parent eee7d0aac1
commit 1d5229ee8c

6
fold.c
View file

@ -123,9 +123,9 @@ static GMQCC_INLINE vec3_t vec3_xorvf(vec3_t a, qcfloat_t b) {
static GMQCC_INLINE vec3_t vec3_not(vec3_t a) {
vec3_t out;
out.x = (qcfloat_t)(~((qcint_t)a.x));
out.y = (qcfloat_t)(~((qcint_t)a.y));
out.z = (qcfloat_t)(~((qcint_t)a.z));
out.x = -1-a.x;
out.y = -1-a.y;
out.z = -1-a.z;
return out;
}