projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5d2f58
)
cogl-bitmap: Remove const from premult_alpha_last_four_pixels_sse2
author
Neil Roberts
<neil@linux.intel.com>
Tue, 9 Feb 2010 16:30:28 +0000
(16:30 +0000)
committer
Neil Roberts
<neil@linux.intel.com>
Tue, 9 Feb 2010 16:30:28 +0000
(16:30 +0000)
The function modifies the pixels pointed by p in-place so the pointer
can not be constant. The compiler was accepting this because the
modification is done from inline assembler.
clutter/cogl/cogl/cogl-bitmap-fallback.c
patch
|
blob
|
history
diff --git
a/clutter/cogl/cogl/cogl-bitmap-fallback.c
b/clutter/cogl/cogl/cogl-bitmap-fallback.c
index
eee42e5
..
410a6c1
100644
(file)
--- a/
clutter/cogl/cogl/cogl-bitmap-fallback.c
+++ b/
clutter/cogl/cogl/cogl-bitmap-fallback.c
@@
-226,7
+226,7
@@
_cogl_premult_alpha_first (guchar *dst)
#ifdef COGL_USE_PREMULT_SSE2
inline static void
-_cogl_premult_alpha_last_four_pixels_sse2 (
const
guint8 *p)
+_cogl_premult_alpha_last_four_pixels_sse2 (guint8 *p)
{
/* 8 copies of 128 used below */
static const gint16 eight_halves[8] __attribute__ ((aligned (16))) =