The next UDF performs EXLUSIVE OR operation between two given integer values as translated to binary expressions
下一个 UDF 在给定的两个整数值之间执行 EXLUSIVE OR 运算,这两个值已经被转换成二进制形式
Bitwise operations perform logical and, or, EXLUSIVE or, and NOT operations on binary representations of their integer arguments.
逐位运算在其二进制形式的整型变量上执行逻辑AND、OR、EXLUSIVE OR和NOT运算。
To verify that the function indeed works as designed, we, again, need to convert each integer to BINARY, perform EXLUSIVE or for each bit, and then convert the result back to integer.
为了验证该函数确实按照所设计的方式工作,我们需要再次将每个整型数字转换成二进制数字,对每一个位执行EXLUSIVE OR运算,然后将结果还原成integer。
应用推荐