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

Function simplicity_complement_1

src/simplicity/jets.c:67–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65
66/* complement_1 : TWO |- TWO */
67bool simplicity_complement_1(frameItem* dst, frameItem src, const txEnv* env) {
68 (void) env; /* env is unused. */
69 bool x = readBit(&src);
70 writeBit(dst, !x);
71 return true;
72}
73
74#define COMPLEMENT_(bits) \
75/* complement_n : TWO^n |- TWO^n */ \

Callers

nothing calls this directly

Calls 2

readBitFunction · 0.85
writeBitFunction · 0.85

Tested by

no test coverage detected