aboutsummaryrefslogtreecommitdiffstats
path: root/libparsepcf_parse_lsb_uint16__.c
blob: 47d9a0d9ffe3550c2dfdab7d4cd24821b046480c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
/* See LICENSE file for copyright and license details. */
#include "common.h"


uint16_t
libparsepcf_parse_lsb_uint16__(const void *buf)
{
	const uint8_t *bs = buf;
	uint16_t a = (uint16_t)bs[0] << 0;
	uint16_t b = (uint16_t)bs[1] << 8;
	return a | b;
}