Mathematical (Arithmetic) representation of XOR

前端 未结 8 1158
一向
一向 2021-02-04 07:27

I have spent the last 5 hours searching for an answer. Even though I have found many answers they have not helped in any way.

What I am basically looking for is a mathem

8条回答
  •  自闭症患者
    2021-02-04 08:19

    It may be possible to adapt and optimize this solution for 32-bit unsigned integers. It's complicated and it uses logarithms but seems to be the most universal one as it can be used on any integer number. Additionaly, you'll have to check if it really works for all number combinations.

提交回复
热议问题