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

Function clear_feature_bit

common/features.c:178–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178static void clear_feature_bit(u8 *features, u32 bit)
179{
180 size_t bytenum = bit / 8, bitnum = bit % 8, len = tal_count(features);
181
182 if (bytenum >= len)
183 return;
184
185 features[len - 1 - bytenum] &= ~(1 << bitnum);
186}
187
188static enum feature_copy_style feature_copy_style(u32 f, enum feature_place p)
189{

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