3 #include <linux/log2.h> 16 bytes_per_line = roundup_pow_of_two(bytes_per_line);
17 mask = bytes_per_line - 1;
20 for (i = 0; i < len; i++) {
21 if ((i & mask) == 0) {
28 if (((i & mask) == mask) || i == len - 1) {
29 for (j = 0; j < mask-(i & mask); j++)
33 for (j = i & ~mask; j <= i; j++)
35 for (j = 0; j < mask-(i & mask); j++)
48 if (!p || !len || p[len - 1] != 0)
53 for (i = 0; i < len; i++) {
int binary__fprintf(unsigned char *data, size_t len, size_t bytes_per_line, binary__fprintf_t printer, void *extra, FILE *fp)
int(* binary__fprintf_t)(enum binary_printer_ops op, unsigned int val, void *extra, FILE *fp)
int is_printable_array(char *p, unsigned int len)