projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88ad8c7
)
gallium/util: fix align64
author
Marek Olšák
<marek.olsak@amd.com>
Fri, 29 Jul 2016 13:00:12 +0000
(15:00 +0200)
committer
Marek Olšák
<marek.olsak@amd.com>
Mon, 1 Aug 2016 21:28:14 +0000
(23:28 +0200)
it cut off the upper 32 bits
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/gallium/auxiliary/util/u_math.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_math.h
b/src/gallium/auxiliary/util/u_math.h
index
c94967e
..
1661e63
100644
(file)
--- a/
src/gallium/auxiliary/util/u_math.h
+++ b/
src/gallium/auxiliary/util/u_math.h
@@
-682,7
+682,7
@@
align(int value, int alignment)
static inline uint64_t
align64(uint64_t value, unsigned alignment)
{
- return (value + alignment - 1) & ~(alignment - 1);
+ return (value + alignment - 1) & ~(
(uint64_t)
alignment - 1);
}
/**