Coverage Report

Created: 2017-10-25 09:10

/root/src/xen/xen/include/asm/div64.h
Line
Count
Source
1
#ifndef __X86_DIV64
2
#define __X86_DIV64
3
4
#include <xen/types.h>
5
6
1.54M
#define do_div(n,base) ({                       \
7
1.54M
    uint32_t __base = (base);                   \
8
1.54M
    uint32_t __rem;                             \
9
1.54M
    __rem = ((uint64_t)(n)) % __base;           \
10
1.54M
    (n) = ((uint64_t)(n)) / __base;             \
11
1.54M
    __rem;                                      \
12
1.54M
})
13
14
#endif