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:
9a058f6
)
util: allow align64() to do alignments >= 4Gb
author
Lionel Landwerlin
<lionel.g.landwerlin@intel.com>
Thu, 23 Feb 2023 08:30:25 +0000
(10:30 +0200)
committer
Marge Bot
<emma+marge@anholt.net>
Wed, 8 Mar 2023 23:32:37 +0000
(23:32 +0000)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21757>
src/util/u_math.h
patch
|
blob
|
history
diff --git
a/src/util/u_math.h
b/src/util/u_math.h
index
c01d752
..
64b4c60
100644
(file)
--- a/
src/util/u_math.h
+++ b/
src/util/u_math.h
@@
-697,9
+697,9
@@
align(int value, int alignment)
}
static inline uint64_t
-align64(uint64_t value, u
nsigned
alignment)
+align64(uint64_t value, u
int64_t
alignment)
{
- return (value + alignment - 1) & ~(
(uint64_t)
alignment - 1);
+ return (value + alignment - 1) & ~(alignment - 1);
}
/**