6 lines
133 B
C

#include <stdio.h>
#include <stdint.h>
uint8_t and_gate(uint8_t _a, uint8_t _b){
return ((_a >> 0) & 0x01) & ((_b >> 0) & 0x01);
}