From 03750a067e818ca7fbd0f590e2ff6a8fded21e6c Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Mon, 18 Oct 2010 14:06:08 -0700 Subject: Use VBOs to render most geometries. Change-Id: I4360dc4fe5693ab425450c107282b2c22db4dca7 --- libs/hwui/utils/Compare.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libs/hwui/utils') diff --git a/libs/hwui/utils/Compare.h b/libs/hwui/utils/Compare.h index 754b470..ddb9c0b 100644 --- a/libs/hwui/utils/Compare.h +++ b/libs/hwui/utils/Compare.h @@ -21,19 +21,19 @@ #define EPSILON 0.00001f -#define almost(u, v) (fabs((u) - (v)) < EPSILON) +#define ALMOST_EQUAL(u, v) (fabs((u) - (v)) < EPSILON) /** * Compare floats. */ -#define compare(a) \ +#define FLOAT_COMPARE(a) \ if (a < rhs.a) return true; \ - if (almost(a, rhs.a)) + if (ALMOST_EQUAL(a, rhs.a)) /** * Compare integers. */ -#define compareI(a) \ +#define INT_COMPARE(a) \ if (a < rhs.a) return true; \ if (a == rhs.a) -- cgit v1.1