I'm adapting an algorithm for calculating a CRC 16-bit CCITT (XModem) value from an ASCII input. I've found some code here. I'm using the function the poster has in his question, but I've noticed at the bottom he does this:
calcrc = crc And &HFFFF
What's the purpose of applying such a bit mask that is all 1s to a value? Doesn't that just return the value again?