MCPcopy Create free account
hub / github.com/ElementsProject/elements / simplicity_xor_1

Function simplicity_xor_1

src/simplicity/jets.c:134–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132
133/* xor_1 : TWO * TWO |- TWO */
134bool simplicity_xor_1(frameItem* dst, frameItem src, const txEnv* env) {
135 (void) env; /* env is unused. */
136 bool x = readBit(&src);
137 bool y = readBit(&src);
138 writeBit(dst, x ^ y);
139 return true;
140}
141
142#define XOR_(bits) \
143/* xor_n : TWO^n * TWO^n |- TWO^n */ \

Callers

nothing calls this directly

Calls 2

readBitFunction · 0.85
writeBitFunction · 0.85

Tested by

no test coverage detected