diff options
| author | Ingo Molnar <mingo@kernel.org> | 2015-10-20 04:16:46 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2015-10-20 04:16:46 -0400 |
| commit | a1a2ab2ff7040bdc9a31bfe7173913971f7d723b (patch) | |
| tree | a5b448aaedafafca6974710b7d64074ed964fe24 /arch/tile | |
| parent | 00eb4bab69db349c3bdc7e0b0f7e9070dafea58c (diff) | |
| parent | 7379047d5585187d1288486d4627873170d0005a (diff) | |
Merge tag 'v4.3-rc6' into locking/core, to pick up fixes before applying new changes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/tile')
| -rw-r--r-- | arch/tile/include/asm/Kbuild | 1 | ||||
| -rw-r--r-- | arch/tile/include/asm/word-at-a-time.h | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/arch/tile/include/asm/Kbuild b/arch/tile/include/asm/Kbuild index 0b6cacaad933..ba35c41c71ff 100644 --- a/arch/tile/include/asm/Kbuild +++ b/arch/tile/include/asm/Kbuild | |||
| @@ -40,5 +40,4 @@ generic-y += termbits.h | |||
| 40 | generic-y += termios.h | 40 | generic-y += termios.h |
| 41 | generic-y += trace_clock.h | 41 | generic-y += trace_clock.h |
| 42 | generic-y += types.h | 42 | generic-y += types.h |
| 43 | generic-y += word-at-a-time.h | ||
| 44 | generic-y += xor.h | 43 | generic-y += xor.h |
diff --git a/arch/tile/include/asm/word-at-a-time.h b/arch/tile/include/asm/word-at-a-time.h index 9e5ce0d7b292..b66a693c2c34 100644 --- a/arch/tile/include/asm/word-at-a-time.h +++ b/arch/tile/include/asm/word-at-a-time.h | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | struct word_at_a_time { /* unused */ }; | 6 | struct word_at_a_time { /* unused */ }; |
| 7 | #define WORD_AT_A_TIME_CONSTANTS {} | 7 | #define WORD_AT_A_TIME_CONSTANTS {} |
| 8 | 8 | ||
| 9 | /* Generate 0x01 byte values for non-zero bytes using a SIMD instruction. */ | 9 | /* Generate 0x01 byte values for zero bytes using a SIMD instruction. */ |
| 10 | static inline unsigned long has_zero(unsigned long val, unsigned long *data, | 10 | static inline unsigned long has_zero(unsigned long val, unsigned long *data, |
| 11 | const struct word_at_a_time *c) | 11 | const struct word_at_a_time *c) |
| 12 | { | 12 | { |
| @@ -33,4 +33,10 @@ static inline long find_zero(unsigned long mask) | |||
| 33 | #endif | 33 | #endif |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | #ifdef __BIG_ENDIAN | ||
| 37 | #define zero_bytemask(mask) (~1ul << (63 - __builtin_clzl(mask))) | ||
| 38 | #else | ||
| 39 | #define zero_bytemask(mask) ((2ul << __builtin_ctzl(mask)) - 1) | ||
| 40 | #endif | ||
| 41 | |||
| 36 | #endif /* _ASM_WORD_AT_A_TIME_H */ | 42 | #endif /* _ASM_WORD_AT_A_TIME_H */ |
