-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[S390] convert bitmap definitions to C
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
- Loading branch information
Heiko Carstens
authored and
Martin Schwidefsky
committed
Mar 26, 2009
1 parent
7b88641
commit e3dd9c2
Showing
3 changed files
with
50 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Bitmaps for set_bit, clear_bit, test_and_set_bit, ... | ||
* See include/asm/{bitops.h|posix_types.h} for details | ||
* | ||
* Copyright IBM Corp. 1999,2009 | ||
* Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>, | ||
*/ | ||
|
||
#include <linux/bitops.h> | ||
|
||
const char _oi_bitmap[] = { 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80 }; | ||
|
||
const char _ni_bitmap[] = { 0xfe, 0xfd, 0xfb, 0xf7, 0xef, 0xdf, 0xbf, 0x7f }; | ||
|
||
const char _zb_findmap[] = { | ||
0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4, | ||
0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5, | ||
0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4, | ||
0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6, | ||
0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4, | ||
0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5, | ||
0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4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