Use bit operation to do minus of two ints

Go down

Use bit operation to do minus of two ints

Post  viterbi on Tue Sep 13, 2011 10:06 am

1____int Minus(int a, int b) {
2__________return a+1+(~b);
3____}

viterbi

Posts : 32
Join date : 2011-09-03

View user profile

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum