MCPcopy Create free account
hub / github.com/ElementsProject/lightning / clear_feature_bit

Function clear_feature_bit

common/features.c:188–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188static void clear_feature_bit(u8 *features, u32 bit)
189{
190 size_t bytenum = bit / 8, bitnum = bit % 8, len = tal_count(features);
191
192 if (bytenum >= len)
193 return;
194
195 features[len - 1 - bytenum] &= ~(1 << bitnum);
196}
197
198static enum feature_copy_style feature_copy_style(u32 f, enum feature_place p)
199{

Callers 5

feature_set_subFunction · 0.85
test_feature_set_orFunction · 0.85
test_feature_trimFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 3

test_feature_set_orFunction · 0.68
test_feature_trimFunction · 0.68
mainFunction · 0.68