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

Function ConstructClMul2Bytes

src/minisketch/src/fields/clmul_2bytes.cpp:108–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108Sketch* ConstructClMul2Bytes(int bits, int implementation) {
109 switch (bits) {
110#ifdef ENABLE_FIELD_INT_10
111 case 10: return new SketchImpl<Field10>(implementation, 10);
112#endif
113#ifdef ENABLE_FIELD_INT_11
114 case 11: return new SketchImpl<Field11>(implementation, 11);
115#endif
116#ifdef ENABLE_FIELD_INT_12
117 case 12: return new SketchImpl<Field12>(implementation, 12);
118#endif
119#ifdef ENABLE_FIELD_INT_13
120 case 13: return new SketchImpl<Field13>(implementation, 13);
121#endif
122#ifdef ENABLE_FIELD_INT_14
123 case 14: return new SketchImpl<Field14>(implementation, 14);
124#endif
125#ifdef ENABLE_FIELD_INT_16
126 case 16: return new SketchImpl<Field16>(implementation, 16);
127#endif
128 }
129 return nullptr;
130}
131
132Sketch* ConstructClMulTri2Bytes(int bits, int implementation) {
133 switch (bits) {

Callers 1

ConstructFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected