AmitKumarDas / fun-with-programming

ABC - Always Be Coding
2 stars 2 forks source link

[repo] bit #2

Closed AmitKumarDas closed 2 years ago

AmitKumarDas commented 3 years ago
// refer
//
// - https://github.com/yourbasic/bit
// - https://github.com/google/gapid/tree/master/core/data/binary
// x & (1 << n -1) 
//
// is a bit manipulation way to get the lowest n bits 
// the ones from the right from x