- Fixes '<<' whitespace
- Replace ')\(<<\)\(\w\)' with ') \1 \2'.
- Replace '\(\w\)\(<<\)(' with '\1 \2 ('.
- Replace '\(\w\)\(<<\)\(\w\)' with '\1 \2 \3'.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2370 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -118,14 +118,14 @@ struct tms_sequences
|
||||
#define HEX__(n) 0x##n##LU
|
||||
|
||||
#define B8__(x) \
|
||||
(((x) & 0x0000000FLU)?(1<<0):0) \
|
||||
+(((x) & 0x000000F0LU)?(1<<1):0) \
|
||||
+(((x) & 0x00000F00LU)?(1<<2):0) \
|
||||
+(((x) & 0x0000F000LU)?(1<<3):0) \
|
||||
+(((x) & 0x000F0000LU)?(1<<4):0) \
|
||||
+(((x) & 0x00F00000LU)?(1<<5):0) \
|
||||
+(((x) & 0x0F000000LU)?(1<<6):0) \
|
||||
+(((x) & 0xF0000000LU)?(1<<7):0)
|
||||
(((x) & 0x0000000FLU)?(1 << 0):0) \
|
||||
+(((x) & 0x000000F0LU)?(1 << 1):0) \
|
||||
+(((x) & 0x00000F00LU)?(1 << 2):0) \
|
||||
+(((x) & 0x0000F000LU)?(1 << 3):0) \
|
||||
+(((x) & 0x000F0000LU)?(1 << 4):0) \
|
||||
+(((x) & 0x00F00000LU)?(1 << 5):0) \
|
||||
+(((x) & 0x0F000000LU)?(1 << 6):0) \
|
||||
+(((x) & 0xF0000000LU)?(1 << 7):0)
|
||||
|
||||
#define B8(bits,count) { ((uint8_t)B8__(HEX__(bits))), (count) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user