summaryrefslogtreecommitdiff
path: root/CSAPP/shift.c
blob: 3b088cf4fb1747e7c5d6e6069c9f1632cd5b1552 (plain)
1
2
3
4
5
6
7
long shift(long x, long n) {
	x <<= 4;
	x >>= n;
	return x;
}