Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4924

Reciprocal of 3 bits in C?

$
0
0
For some reason I just can't figure out how to do this. Reciprocal of 3 bits in C? For example

0b001 becomes 0b100
ob011 becomes 0b110
0c100 becomes 0b001


and so on.

Viewing all articles
Browse latest Browse all 4924

Trending Articles