2013-04-15 68 views

回答

1

這是相同的C,所以像

static int rotateLeft(int i, int distance) { 
    return (i << (distance % 32)) | ((unsigned int)i >> (32 - (distance % 32))); 
}