aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compute/skc/subblock.h
blob: 7249e85e3ad2335e3598e983e73b477a10c653e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * Copyright 2017 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can
 * be found in the LICENSE file.
 *
 */

#ifndef SKC_ONCE_SUBBLOCK
#define SKC_ONCE_SUBBLOCK

//
//
//

#include "block.h"

//
//
//

#if 0

#define SKC_BLOCK_ID_BITS_BLOCK       (SKC_BLOCK_ID_BITS_ID - SKC_BLOCK_ID_BITS_SUBLOCK)
#define SKC_BLOCK_ID_BITS_SUBLOCK     (SKC_DEVICE_BLOCK_WORDS_LOG2 - SKC_DEVICE_SUBBLOCK_WORDS_LOG2)

#define SKC_BLOCK_ID_MASK_SUBBLOCK    SKC_BITS_TO_MASK_AT(SKC_BLOCK_ID_BITS_SUBLOCK,SKC_BLOCK_ID_BITS_TAG)

#define SKC_BLOCK_ID_GET_BLOCK(b)     ((b) >> (SKC_BLOCK_ID_BITS_SUBLOCK + SKC_BLOCK_ID_BITS_TAG))
#define SKC_BLOCK_ID_GET_SUBBLOCK(b)  (((b) & SKC_BLOCK_ID_MASK_SUBBLOCK) >> SKC_BLOCK_ID_BITS_TAG)

#endif

//
//
//

#endif

//
//
//