MCPcopy Create free account
hub / github.com/apache/httpd / ceil_power_of_2

Function ceil_power_of_2

modules/http2/h2_push.c:537–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537static apr_int32_t ceil_power_of_2(apr_int32_t n)
538{
539 if (n <= 2) return 2;
540 --n;
541 n |= n >> 1;
542 n |= n >> 2;
543 n |= n >> 4;
544 n |= n >> 8;
545 n |= n >> 16;
546 return ++n;
547}
548
549static h2_push_diary *diary_create(apr_pool_t *p, h2_push_digest_type dtype,
550 int N)

Callers 2

diary_createFunction · 0.85
h2_push_diary_digest_getFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected