Mesa (llvmpipe-rast-64): llvmpipe: Tweak IMUL64 definition.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Tue Oct 29 13:19:21 UTC 2013
Module: Mesa
Branch: llvmpipe-rast-64
Commit: a670d5e606ccfa516f5034df6427bdcfb62d55b0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a670d5e606ccfa516f5034df6427bdcfb62d55b0
Author: José Fonseca <jfonseca at vmware.com>
Date: Tue Oct 29 12:44:39 2013 +0000
llvmpipe: Tweak IMUL64 definition.
It should generate slightly better code for
IMUL64(x + y, z + w)
as the cast will be deferred to after the addition.
---
src/gallium/drivers/llvmpipe/lp_rast.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_rast.h b/src/gallium/drivers/llvmpipe/lp_rast.h
index 54641b1..6a94150 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast.h
+++ b/src/gallium/drivers/llvmpipe/lp_rast.h
@@ -65,7 +65,7 @@ struct cmd_bin;
#define LP_MAX_ACTIVE_BINNED_QUERIES 16
-#define IMUL64(a, b) (((int64_t)a) * ((int64_t)b))
+#define IMUL64(a, b) (((int64_t)(a)) * ((int64_t)(b)))
struct lp_rasterizer_task;
More information about the mesa-commit
mailing list