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

Function minisketch_bits_supported

src/minisketch/src/minisketch.cpp:163–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161extern "C" {
162
163int minisketch_bits_supported(uint32_t bits) {
164#ifdef ENABLE_FIELD_INT_2
165 if (bits == 2) return true;
166#endif
167#ifdef ENABLE_FIELD_INT_3
168 if (bits == 3) return true;
169#endif
170#ifdef ENABLE_FIELD_INT_4
171 if (bits == 4) return true;
172#endif
173#ifdef ENABLE_FIELD_INT_5
174 if (bits == 5) return true;
175#endif
176#ifdef ENABLE_FIELD_INT_6
177 if (bits == 6) return true;
178#endif
179#ifdef ENABLE_FIELD_INT_7
180 if (bits == 7) return true;
181#endif
182#ifdef ENABLE_FIELD_INT_8
183 if (bits == 8) return true;
184#endif
185#ifdef ENABLE_FIELD_INT_9
186 if (bits == 9) return true;
187#endif
188#ifdef ENABLE_FIELD_INT_10
189 if (bits == 10) return true;
190#endif
191#ifdef ENABLE_FIELD_INT_11
192 if (bits == 11) return true;
193#endif
194#ifdef ENABLE_FIELD_INT_12
195 if (bits == 12) return true;
196#endif
197#ifdef ENABLE_FIELD_INT_13
198 if (bits == 13) return true;
199#endif
200#ifdef ENABLE_FIELD_INT_14
201 if (bits == 14) return true;
202#endif
203#ifdef ENABLE_FIELD_INT_15
204 if (bits == 15) return true;
205#endif
206#ifdef ENABLE_FIELD_INT_16
207 if (bits == 16) return true;
208#endif
209#ifdef ENABLE_FIELD_INT_17
210 if (bits == 17) return true;
211#endif
212#ifdef ENABLE_FIELD_INT_18
213 if (bits == 18) return true;
214#endif
215#ifdef ENABLE_FIELD_INT_19
216 if (bits == 19) return true;
217#endif
218#ifdef ENABLE_FIELD_INT_20
219 if (bits == 20) return true;
220#endif

Callers 3

mainFunction · 0.85
BitsSupportedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected