I want to run some code written for x2 on m2. The only function used that believe I can't use on m2 is shifting: >> and <<. I only need to shift by 1 bit.
Instead of
W0 = W0 << 1
I can use
W0 = W0 + W0
Which will be pretty quick. But for
W0 = W0 >> 1
the only thing I can think of is
W0 = W0 / 2
which will be slower. Speed is critial. Any suggestions please?
Thanks,
Paul
Instead of
W0 = W0 << 1
I can use
W0 = W0 + W0
Which will be pretty quick. But for
W0 = W0 >> 1
the only thing I can think of is
W0 = W0 / 2
which will be slower. Speed is critial. Any suggestions please?
Thanks,
Paul