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

Function simplicity_eq_1

src/simplicity/jets.c:266–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264
265/* eq_1 : TWO * TWO |- TWO */
266bool simplicity_eq_1(frameItem* dst, frameItem src, const txEnv* env) {
267 (void) env; /* env is unused. */
268 bool x = readBit(&src);
269 bool y = readBit(&src);
270 writeBit(dst, x == y);
271 return true;
272}
273
274#define EQ_(bits) \
275/* eq_n : TWO^n * TWO^n |- TWO */ \

Callers

nothing calls this directly

Calls 2

readBitFunction · 0.85
writeBitFunction · 0.85

Tested by

no test coverage detected