Menu Toggle
v2.0.0
bit_ops.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
3
*
4
* SPDX-License-Identifier: BSD-3-Clause
5
*/
6
7
#ifndef _PICO_BIT_OPS_H
8
#define _PICO_BIT_OPS_H
9
10
#include "
pico.h
"
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
31
uint32_t
__rev
(uint32_t bits);
32
39
uint64_t
__revll
(uint64_t bits);
40
41
#ifdef __cplusplus
42
}
43
#endif
44
45
#endif
__rev
uint32_t __rev(uint32_t bits)
Reverse the bits in a 32 bit word.
__revll
uint64_t __revll(uint64_t bits)
Reverse the bits in a 64 bit double word.
pico.h