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

Function simplicity_ch_1

src/simplicity/jets.c:207–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205
206/* ch_1 : TWO * TWO * TWO |- TWO */
207bool simplicity_ch_1(frameItem* dst, frameItem src, const txEnv* env) {
208 (void) env; /* env is unused. */
209 bool x = readBit(&src);
210 bool y = readBit(&src);
211 bool z = readBit(&src);
212 writeBit(dst, x ? y : z);
213 return true;
214}
215
216#define CH_(bits) \
217/* ch_n : TWO^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