/* * Copyright (C) 2016 ARM Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_CHECKSUM_H #define __ASM_CHECKSUM_H #include <linux/types.h>
static inline __sum16 csum_fold(__wsum csum) { u32 sum = (__force u32)csum; sum += (sum >> 16) | (sum << 16); return ~(__force __sum16)(sum >> 16); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Robin Murphy | 45 | 100.00% | 1 | 100.00% |
Total | 45 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Robin Murphy | 109 | 94.78% | 1 | 50.00% |
Luc Van Oostenryck | 6 | 5.22% | 1 | 50.00% |
Total | 115 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Robin Murphy | 178 | 96.74% | 1 | 50.00% |
Luc Van Oostenryck | 6 | 3.26% | 1 | 50.00% |
Total | 184 | 100.00% | 2 | 100.00% |