uint8_t a = 0x01; //00000001
uint8_t b = 0xff; //11111111
uint8_t c = 0xf0; //11110000
maj(a,b,c) = 0xf1; //11110001
I'm unsure how to access and compare each bit so I can come to the result?
result = (a & b) | (b & c) | (c & a);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With