• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2016 Google Inc.
3 //
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6 //
7 
8 #ifndef HS_CL_ONCE
9 #define HS_CL_ONCE
10 
11 #define HS_SLAB_THREADS_LOG2    3
12 #define HS_SLAB_THREADS         (1 << HS_SLAB_THREADS_LOG2)
13 #define HS_SLAB_WIDTH_LOG2      3
14 #define HS_SLAB_WIDTH           (1 << HS_SLAB_WIDTH_LOG2)
15 #define HS_SLAB_HEIGHT          16
16 #define HS_SLAB_KEYS            (HS_SLAB_WIDTH * HS_SLAB_HEIGHT)
17 #define HS_REG_LAST(c)          c##16
18 #define HS_KEY_WORDS            2
19 #define HS_VAL_WORDS            0
20 #define HS_BS_SLABS             16
21 #define HS_BS_SLABS_LOG2_RU     4
22 #define HS_BC_SLABS_LOG2_MAX    4
23 #define HS_FM_BLOCK_HEIGHT      1
24 #define HS_FM_SCALE_MIN         1
25 #define HS_FM_SCALE_MAX         1
26 #define HS_HM_BLOCK_HEIGHT      1
27 #define HS_HM_SCALE_MIN         1
28 #define HS_HM_SCALE_MAX         1
29 #define HS_EMPTY
30 
31 #define HS_INTEL_GEN8
32 
33 #define HS_SLAB_ROWS()    \
34   HS_SLAB_ROW(   1,   0 ) \
35   HS_SLAB_ROW(   2,   1 ) \
36   HS_SLAB_ROW(   3,   2 ) \
37   HS_SLAB_ROW(   4,   3 ) \
38   HS_SLAB_ROW(   5,   4 ) \
39   HS_SLAB_ROW(   6,   5 ) \
40   HS_SLAB_ROW(   7,   6 ) \
41   HS_SLAB_ROW(   8,   7 ) \
42   HS_SLAB_ROW(   9,   8 ) \
43   HS_SLAB_ROW(  10,   9 ) \
44   HS_SLAB_ROW(  11,  10 ) \
45   HS_SLAB_ROW(  12,  11 ) \
46   HS_SLAB_ROW(  13,  12 ) \
47   HS_SLAB_ROW(  14,  13 ) \
48   HS_SLAB_ROW(  15,  14 ) \
49   HS_SLAB_ROW(  16,  15 ) \
50   HS_EMPTY
51 
52 #define HS_TRANSPOSE_SLAB()                \
53   HS_TRANSPOSE_STAGE( 1 )                  \
54   HS_TRANSPOSE_STAGE( 2 )                  \
55   HS_TRANSPOSE_STAGE( 3 )                  \
56   HS_TRANSPOSE_BLEND( r, s,  1,   2,   1 ) \
57   HS_TRANSPOSE_BLEND( r, s,  1,   4,   3 ) \
58   HS_TRANSPOSE_BLEND( r, s,  1,   6,   5 ) \
59   HS_TRANSPOSE_BLEND( r, s,  1,   8,   7 ) \
60   HS_TRANSPOSE_BLEND( r, s,  1,  10,   9 ) \
61   HS_TRANSPOSE_BLEND( r, s,  1,  12,  11 ) \
62   HS_TRANSPOSE_BLEND( r, s,  1,  14,  13 ) \
63   HS_TRANSPOSE_BLEND( r, s,  1,  16,  15 ) \
64   HS_TRANSPOSE_BLEND( s, t,  2,   3,   1 ) \
65   HS_TRANSPOSE_BLEND( s, t,  2,   4,   2 ) \
66   HS_TRANSPOSE_BLEND( s, t,  2,   7,   5 ) \
67   HS_TRANSPOSE_BLEND( s, t,  2,   8,   6 ) \
68   HS_TRANSPOSE_BLEND( s, t,  2,  11,   9 ) \
69   HS_TRANSPOSE_BLEND( s, t,  2,  12,  10 ) \
70   HS_TRANSPOSE_BLEND( s, t,  2,  15,  13 ) \
71   HS_TRANSPOSE_BLEND( s, t,  2,  16,  14 ) \
72   HS_TRANSPOSE_BLEND( t, u,  3,   5,   1 ) \
73   HS_TRANSPOSE_BLEND( t, u,  3,   6,   2 ) \
74   HS_TRANSPOSE_BLEND( t, u,  3,   7,   3 ) \
75   HS_TRANSPOSE_BLEND( t, u,  3,   8,   4 ) \
76   HS_TRANSPOSE_BLEND( t, u,  3,  13,   9 ) \
77   HS_TRANSPOSE_BLEND( t, u,  3,  14,  10 ) \
78   HS_TRANSPOSE_BLEND( t, u,  3,  15,  11 ) \
79   HS_TRANSPOSE_BLEND( t, u,  3,  16,  12 ) \
80   HS_TRANSPOSE_REMAP( u,   1,   1 )        \
81   HS_TRANSPOSE_REMAP( u,   2,   3 )        \
82   HS_TRANSPOSE_REMAP( u,   3,   5 )        \
83   HS_TRANSPOSE_REMAP( u,   4,   7 )        \
84   HS_TRANSPOSE_REMAP( u,   5,   9 )        \
85   HS_TRANSPOSE_REMAP( u,   6,  11 )        \
86   HS_TRANSPOSE_REMAP( u,   7,  13 )        \
87   HS_TRANSPOSE_REMAP( u,   8,  15 )        \
88   HS_TRANSPOSE_REMAP( u,   9,   2 )        \
89   HS_TRANSPOSE_REMAP( u,  10,   4 )        \
90   HS_TRANSPOSE_REMAP( u,  11,   6 )        \
91   HS_TRANSPOSE_REMAP( u,  12,   8 )        \
92   HS_TRANSPOSE_REMAP( u,  13,  10 )        \
93   HS_TRANSPOSE_REMAP( u,  14,  12 )        \
94   HS_TRANSPOSE_REMAP( u,  15,  14 )        \
95   HS_TRANSPOSE_REMAP( u,  16,  16 )        \
96   HS_EMPTY
97 
98 #endif
99 
100 //
101 //
102 //
103 
104