aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/odp_chksum.c
blob: a0336893e2b80779305dc44c2a26cd7cc7ccfdf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Copyright (c) 2017-2018, Linaro Limited
 * All rights reserved.
 *
 * SPDX-License-Identifier:     BSD-3-Clause
 */

#include <odp/api/chksum.h>
#include <odp/api/std_types.h>
#include <odp_chksum_internal.h>

uint16_t odp_chksum_ones_comp16(const void *p, uint32_t len)
{
	return chksum_finalize(chksum_partial(p, len, 0));
}