Coverage Report

Created: 2017-04-15 07:07

/home/travis/build/MoarVM/MoarVM/src/6model/reprs/P6int.h
Line
Count
Source (jump to first uncovered line)
1
0
#define MVM_P6INT_C_TYPE_CHAR      -1
2
0
#define MVM_P6INT_C_TYPE_SHORT     -2
3
0
#define MVM_P6INT_C_TYPE_INT       -3
4
0
#define MVM_P6INT_C_TYPE_LONG      -4
5
0
#define MVM_P6INT_C_TYPE_LONGLONG  -5
6
0
#define MVM_P6INT_C_TYPE_SIZE_T    -6
7
0
#define MVM_P6INT_C_TYPE_BOOL      -7
8
9
/* Representation used by P6 native ints. */
10
struct MVMP6intBody {
11
    /* Integer storage slot. */
12
    union {
13
        MVMint64  i64;
14
        MVMint32  i32;
15
        MVMint16  i16;
16
        MVMint8   i8;
17
        MVMuint64 u64;
18
        MVMuint32 u32;
19
        MVMuint16 u16;
20
        MVMuint8  u8;
21
    } value;
22
};
23
struct MVMP6int {
24
    MVMObject common;
25
    MVMP6intBody body;
26
};
27
28
/* The bit width requirement is shared for all instances of the same type. */
29
struct MVMP6intREPRData {
30
    MVMint16       bits;
31
    MVMint16       is_unsigned;
32
    MVMStorageSpec storage_spec;
33
};
34
35
/* Function for REPR setup. */
36
const MVMREPROps * MVMP6int_initialize(MVMThreadContext *tc);