Arm/invert

From ASMBits

Write a function that returns the bitwise inversion of its parameter.

int invert (int n);

Expected solution length: Around 2 lines.

Sample Input

1

Sample Output

0xfffffffe

ARM has an instruction for inversion, but it is oddly named: "move inverse".

Write your solution here

Upload a source file...