1 /* 2 * Copyright 2017 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can 5 * be found in the LICENSE file. 6 * 7 */ 8 9 #ifndef SKC_ONCE_SUBBLOCK 10 #define SKC_ONCE_SUBBLOCK 11 12 // 13 // 14 // 15 16 #include "block.h" 17 18 // 19 // 20 // 21 22 #if 0 23 24 #define SKC_BLOCK_ID_BITS_BLOCK (SKC_BLOCK_ID_BITS_ID - SKC_BLOCK_ID_BITS_SUBLOCK) 25 #define SKC_BLOCK_ID_BITS_SUBLOCK (SKC_DEVICE_BLOCK_WORDS_LOG2 - SKC_DEVICE_SUBBLOCK_WORDS_LOG2) 26 27 #define SKC_BLOCK_ID_MASK_SUBBLOCK SKC_BITS_TO_MASK_AT(SKC_BLOCK_ID_BITS_SUBLOCK,SKC_BLOCK_ID_BITS_TAG) 28 29 #define SKC_BLOCK_ID_GET_BLOCK(b) ((b) >> (SKC_BLOCK_ID_BITS_SUBLOCK + SKC_BLOCK_ID_BITS_TAG)) 30 #define SKC_BLOCK_ID_GET_SUBBLOCK(b) (((b) & SKC_BLOCK_ID_MASK_SUBBLOCK) >> SKC_BLOCK_ID_BITS_TAG) 31 32 #endif 33 34 // 35 // 36 // 37 38 #endif 39 40 // 41 // 42 // 43