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

Function simplicity_and_1

src/simplicity/jets.c:88–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87/* and_1 : TWO * TWO |- TWO */
88bool simplicity_and_1(frameItem* dst, frameItem src, const txEnv* env) {
89 (void) env; /* env is unused. */
90 bool x = readBit(&src);
91 bool y = readBit(&src);
92 writeBit(dst, x && y);
93 return true;
94}
95
96#define AND_(bits) \
97/* and_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