aboutsummaryrefslogtreecommitdiff
path: root/pqcrypto_bitcnt_bytes.h
blob: ff3c4e74efa61759c3d93509d4b4d25ecbcf2c67 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * SPDX-License-Identifier: CC0-1.0
 *
 * Copyright (C) 2025 W. Kosior <koszko@koszko.org>
 */

#ifndef PQCRYPTO_BITCNT_BYTES_H
#define PQCRYPTO_BITCNT_BYTES_H

#include <stdint.h>

#define BITCNT_BYTES(n) ((n - 1) / 8 + 1)

#endif /* PQCRYPTO_BITCNT_BYTES_H */