mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-11 16:32:58 +00:00
lib/igt_aux: s/swap/igt_swap/
It collides with the subtest naming convention glossary entry for swap. Which makes the docbook xml stuff unhappy. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
+2
-2
@@ -92,7 +92,7 @@ expression E;
|
||||
- assert(E);
|
||||
+ igt_assert(E);
|
||||
|
||||
// Replace open-coded swap()
|
||||
// Replace open-coded igt_swap()
|
||||
@@
|
||||
type T;
|
||||
T a, b, tmp;
|
||||
@@ -100,7 +100,7 @@ T a, b, tmp;
|
||||
- tmp = a;
|
||||
- a = b;
|
||||
- b = tmp;
|
||||
+ swap(a, b);
|
||||
+ igt_swap(a, b);
|
||||
|
||||
// Replace open-coded min()
|
||||
@@
|
||||
|
||||
+1
-1
@@ -94,7 +94,7 @@ void intel_require_memory(uint32_t count, uint32_t size, unsigned mode);
|
||||
#define min(a, b) ((a) < (b) ? (a) : (b))
|
||||
#define max(a, b) ((a) > (b) ? (a) : (b))
|
||||
|
||||
#define swap(a, b) do { \
|
||||
#define igt_swap(a, b) do { \
|
||||
typeof(a) _tmp = (a); \
|
||||
(a) = (b); \
|
||||
(b) = _tmp; \
|
||||
|
||||
Reference in New Issue
Block a user