/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_WORD_AT_A_TIME_H #define _ASM_WORD_AT_A_TIME_H #include <asm/byteorder.h> struct word_at_a_time { /* unused */ }; #define WORD_AT_A_TIME_CONSTANTS {} /* Generate 0x01 byte values for zero bytes using a SIMD instruction. */
static inline unsigned long has_zero(unsigned long val, unsigned long *data, const struct word_at_a_time *c) { #ifdef __tilegx__ unsigned long mask = __insn_v1cmpeqi(val, 0); #else /* tilepro */ unsigned long mask = __insn_seqib(val, 0); #endif *data = mask; return mask; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Chris Metcalf | 61 | 100.00% | 1 | 100.00% |
Total | 61 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Chris Metcalf | 34 | 100.00% | 1 | 100.00% |
Total | 34 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Chris Metcalf | 159 | 99.38% | 2 | 66.67% |
Greg Kroah-Hartman | 1 | 0.62% | 1 | 33.33% |
Total | 160 | 100.00% | 3 | 100.00% |