Comment on 10001
swag_money@lemmy.world 2 months agothanks for the explanation! could you express it as a NOT operation plus one? like is that how it would be processed at a low level?
Comment on 10001
swag_money@lemmy.world 2 months agothanks for the explanation! could you express it as a NOT operation plus one? like is that how it would be processed at a low level?
computergeek125@lemmy.world 2 months ago
My low level is a tad rusty from when I learned the C side in school, but if I recall the not operator resolves as a single Boolean (0 or 1 in true C), whereas compliment comes back as however many bits you put in - a not operation per bit.