This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#define SET_BIT(value, bit_num) \ | |
((1 << bit_num) | value) | |
#define CLEAR_BIT(value, bit_num) \ | |
(~(1 << bit_num) & value) | |
#define CHECK_BIT(value, bit_num) \ | |
(value & (1 << bit_num)) ? true : false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MACRO to add all directories in result | |
MACRO(SUBDIRLIST result firstdir curdir) | |
file(GLOB ENDF6_SRC_TOP RELATIVE | |
${curdir} ${curdir}/*) | |
file(GLOB_RECURSE ENDF6_SRC_NESTED ${curdir}/*) | |
set(children ${ENDF6_SRC_TOP} ${ENDF6_SRC_NESTED}) | |
SET(dirlist "${firstdir}") | |
FOREACH(child ${children}) | |
IF(IS_DIRECTORY ${curdir}/${child}) |