diff options
Diffstat (limited to 'arch/s390/kernel/bitmap.c')
-rw-r--r-- | arch/s390/kernel/bitmap.c | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/arch/s390/kernel/bitmap.c b/arch/s390/kernel/bitmap.c new file mode 100644 index 000000000000..54e362b4267d --- /dev/null +++ b/arch/s390/kernel/bitmap.c | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | * Bitmaps for set_bit, clear_bit, test_and_set_bit, ... | ||
3 | * See include/asm/{bitops.h|posix_types.h} for details | ||
4 | * | ||
5 | * Copyright IBM Corp. 1999,2009 | ||
6 | * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>, | ||
7 | */ | ||
8 | |||
9 | #include <linux/bitops.h> | ||
10 | |||
11 | const char _oi_bitmap[] = { 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80 }; | ||
12 | |||
13 | const char _ni_bitmap[] = { 0xfe, 0xfd, 0xfb, 0xf7, 0xef, 0xdf, 0xbf, 0x7f }; | ||
14 | |||
15 | const char _zb_findmap[] = { | ||
16 | 0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4, | ||
17 | 0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5, | ||
18 | 0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4, | ||
19 | 0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6, | ||
20 | 0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4, | ||
21 | 0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5, | ||
22 | 0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4, | ||
23 | 0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7, | ||
24 | 0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4, | ||
25 | 0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5, | ||
26 | 0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4, | ||
27 | 0,1,0,2,0,1,0,3,0,1,0,2,0,1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