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

Function simplicity_or_1

src/simplicity/jets.c:111–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109
110/* or_1 : TWO * TWO |- TWO */
111bool simplicity_or_1(frameItem* dst, frameItem src, const txEnv* env) {
112 (void) env; /* env is unused. */
113 bool x = readBit(&src);
114 bool y = readBit(&src);
115 writeBit(dst, x || y);
116 return true;
117}
118
119#define OR_(bits) \
120/* or_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