aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/syscopyarea.c
diff options
context:
space:
mode:
authorAntonino A. Daplas <adaplas@gmail.com>2007-05-08 03:39:08 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 14:15:30 -0400
commitdc0e6e0544f1cb2af44e5d7a7e68acda05dec6fa (patch)
tree7f5d28d54c333c5ba84bb4b4afe3821246696818 /drivers/video/syscopyarea.c
parent52102c07a68a26fe6f8926e6a8497b577655f18a (diff)
fbdev: consolidate common drawing functions into a header file
Consolidate common drawing functions into a single header file. Signed-off-by: Antonino Daplas <adaplas@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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 e3488932c7b..37af10ab8f5 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