-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswapbits.c
16 lines (15 loc) · 977 Bytes
/
swapbits.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* swapbits.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yinzhang <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/08/19 19:20:00 by yinzhang #+# #+# */
/* Updated: 2019/08/19 19:20:02 by yinzhang ### ########.fr */
/* */
/* ************************************************************************** */
unsigned char swaap_bits(unsigned char octet)
{
return(octet>>4 | octet<< 4);
}