[ad_1]
template<typename T>
T xtime(T x)
{
return ((x<<1) ^ (((x>>7) & 1) * 0x1b));
}
[ad_2]
solved Converting a macro into a function
[ad_1]
template<typename T>
T xtime(T x)
{
return ((x<<1) ^ (((x>>7) & 1) * 0x1b));
}
[ad_2]
solved Converting a macro into a function