I have a function like this which would work in python:
xtime = lambda a: (((a << 1) ^ 0x1B) & 0xFF) if (a & 0x80) else (a << 1)
How to implement same idea in c# ?
I get errors, if I write this like that:
int xtime(int x)
{
if (x & 0x80)
{
return (((x << 1) ^ 0x1B) &...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.