URL
https://opencores.org/ocsvn/lxp32/lxp32/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 2 |
Rev 6 |
Line 50... |
Line 50... |
|
|
std::string dequoteString(const std::string &str);
|
std::string dequoteString(const std::string &str);
|
|
|
bool ishexdigit(char ch);
|
bool ishexdigit(char ch);
|
bool isoctdigit(char ch);
|
bool isoctdigit(char ch);
|
|
|
|
template <typename T> bool isPowerOf2(const T &x) {
|
|
static_assert(std::is_integral<T>::value,"Argument must be of integral type");
|
|
return (x!=0)&&((x&(x-1))==0);
|
|
}
|
}
|
}
|
|
|
#endif
|
#endif
|
|
|
No newline at end of file
|
No newline at end of file
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.