OpenCores
URL https://opencores.org/ocsvn/lxp32/lxp32/trunk

Subversion Repositories lxp32

[/] [lxp32/] [trunk/] [tools/] [src/] [lxp32asm/] [utils.h] - Diff between revs 2 and 6

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.