Re: [Mesa-dev] [PATCH 3/4] util: use memcmp instead of strncmp

2017-05-30 Thread Ian Romanick
I believe this change is correct, but does it have any measurable benefit? Reduction in generated code size, perhaps? On 05/30/2017 03:45 PM, Vlad Golovkin wrote: > --- > src/util/debug.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/util/debug.c b/src/util/debug.

[Mesa-dev] [PATCH 3/4] util: use memcmp instead of strncmp

2017-05-30 Thread Vlad Golovkin
--- src/util/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/debug.c b/src/util/debug.c index 98b1853325..78041d414f 100644 --- a/src/util/debug.c +++ b/src/util/debug.c @@ -42,7 +42,7 @@ parse_debug_string(const char *debug, for (; n = strcspn(s