aboutsummaryrefslogtreecommitdiffstats
path: root/src/ramps.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-16 16:05:48 +0200
committerMattias Andrée <maandree@kth.se>2016-07-16 16:05:48 +0200
commitc5a454342f78eec4c58b1477d9190a084f40cfac (patch)
tree3f98b7e6412182942bc36d44402790541d91fcea /src/ramps.c
parentThe stuff around supportinf SIGRTMIN+0 and SIGRTMIN+1 (diff)
downloadcoopgammad-c5a454342f78eec4c58b1477d9190a084f40cfac.tar.gz
coopgammad-c5a454342f78eec4c58b1477d9190a084f40cfac.tar.bz2
coopgammad-c5a454342f78eec4c58b1477d9190a084f40cfac.tar.xz
attributes
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/ramps.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ramps.c b/src/ramps.c
index f17f917..2b855a4 100644
--- a/src/ramps.c
+++ b/src/ramps.c
@@ -28,7 +28,7 @@
/**
* The name of the process
*/
-extern char* argv0;
+extern char* restrict argv0;
@@ -42,7 +42,7 @@ extern char* argv0;
* @param ramps_size The byte-size of ramps
* @return The number of marshalled byte
*/
-size_t gamma_ramps_marshal(const union gamma_ramps* this, void* buf, size_t ramps_size)
+size_t gamma_ramps_marshal(const union gamma_ramps* restrict this, void* restrict buf, size_t ramps_size)
{
if (buf != NULL)
memcpy(buf, this->u8.red, ramps_size);
@@ -59,7 +59,7 @@ size_t gamma_ramps_marshal(const union gamma_ramps* this, void* buf, size_t ramp
* @param ramps_size The byte-size of ramps
* @return The number of unmarshalled bytes, 0 on error
*/
-size_t gamma_ramps_unmarshal(union gamma_ramps* this, const void* buf, size_t ramps_size)
+size_t gamma_ramps_unmarshal(union gamma_ramps* restrict this, const void* restrict buf, size_t ramps_size)
{
size_t depth = ramps_size / (this->u8.red_size + this->u8.green_size + this->u8.blue_size);
int r = 0;
@@ -109,7 +109,8 @@ size_t gamma_ramps_unmarshal(union gamma_ramps* this, const void* buf, size_t ra
* @param base The CLUT on top of which the new filter should be applied,
* this can be the same pointer as `dest`
*/
-void apply(union gamma_ramps* dest, void* application, int depth, union gamma_ramps* base)
+void apply(union gamma_ramps* restrict dest, void* restrict application,
+ int depth, union gamma_ramps* restrict base)
{
union gamma_ramps app;
size_t bytedepth;