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


uint32_t
libparsepcf_parse_lsb_uint32__(const void *buf)
{
	const uint8_t *bs = buf;
	uint32_t a = (uint32_t)bs[0] << 0;
	uint32_t b = (uint32_t)bs[1] << 8;
	uint32_t c = (uint32_t)bs[2] << 16;
	uint32_t d = (uint32_t)bs[3] << 24;
	return a | b | c | d;
}