12#ifndef __L4UTIL__INCLUDE__SPLITLOG2_H__
13#define __L4UTIL__INCLUDE__SPLITLOG2_H__
15#include <l4/sys/linkage.h>
64 if ((retval = handler(start, start + len - 1, len2)))
74 int start_bits = l4util_bsf(start);
75 int len_bits = l4util_bsr(end - start + 1);
76 if (start_bits != -1 && len_bits > start_bits)
77 len_bits = start_bits;
bit manipulation functions
unsigned long l4_addr_t
Address type.
@ L4_EINVAL
Invalid argument.
#define L4_INLINE
L4 Inline function attribute.
#define EXTERN_C_BEGIN
Start section with C types and functions.
#define EXTERN_C_END
End section with C types and functions.
l4_addr_t l4util_splitlog2_size(l4_addr_t start, l4_addr_t end)
Return log2 base and size aligned length of a range.
long l4util_splitlog2_hdl(l4_addr_t start, l4_addr_t end, long(*handler)(l4_addr_t s, l4_addr_t e, int log2size))
Split a range into log2 base and size aligned chunks.