bitXor
builtins.bitXor
Primop
Docs pulled from | This Revision | about 4 hours ago
Nix manual
Takes 2 arguments
e1, e2
Return the bitwise XOR of the integers e1 and e2.
Noogle detected
Detected Type
bitXor :: Int -> Int -> Int
Implementation
This function is implemented in c++ and is part of the native nix runtime.
static void prim_bitXor(EvalState & state, CallSite callSite, Value * const * args, Value & v)
{
auto i1 = state.forceInt(*args[0], noPos, "while evaluating the first argument passed to builtins.bitXor");
auto i2 = state.forceInt(*args[1], noPos, "while evaluating the second argument passed to builtins.bitXor");
v.mkInt(i1.value ^ i2.value);
}