N<<3 gives 8n and subtract by n to get 7n
Each n bit shift will multibly by (2 ^ n)
((n<<3) - n) // works for positive number only
N<<3 gives 8n and subtract by n to get 7n
Each n bit shift will multibly by (2 ^ n)
((n<<3) - n) // works for positive number only