template<typename T>
T xtime(T x)
{
return ((x<<1) ^ (((x>>7) & 1) * 0x1b));
}
Converting a macro into a function
문제
How do I convert the following macro into a function?
#define xtime(x) ((x<<1) ^ (((x>>7) & 1) * 0x1b))
해결책
제휴하지 않습니다 StackOverflow