-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswap_bits.c
More file actions
18 lines (16 loc) · 1001 Bytes
/
swap_bits.c
File metadata and controls
18 lines (16 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* swap_bits.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jcluzet <jo@cluzet.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/07/20 21:01:37 by fwuensch #+# #+# */
/* Updated: 2021/07/02 16:27:22 by jcluzet ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
unsigned char swap_bits(unsigned char octet)
{
return ((octet >> 4) | (octet << 4));
}