aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/syscopyarea.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/syscopyarea.c')
-rw-r--r--drivers/video/syscopyarea.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/video/syscopyarea.c b/drivers/video/syscopyarea.c
index e3488932c7b3..37af10ab8f52 100644
--- a/drivers/video/syscopyarea.c
+++ b/drivers/video/syscopyarea.c
@@ -19,17 +19,7 @@
19#include <linux/slab.h> 19#include <linux/slab.h>
20#include <asm/types.h> 20#include <asm/types.h>
21#include <asm/io.h> 21#include <asm/io.h>
22 22#include "fb_draw.h"
23 /*
24 * Compose two values, using a bitmask as decision value
25 * This is equivalent to (a & mask) | (b & ~mask)
26 */
27
28static inline unsigned long
29comp(unsigned long a, unsigned long b, unsigned long mask)
30{
31 return ((a ^ b) & mask) ^ b;
32}
33 23
34 /* 24 /*
35 * Generic bitwise copy algorithm 25 * Generic bitwise copy algorithm