Thanks, guys. I should have been able to figure out that one for myself.
cire: this function is being used in a circuit emulation program. In the circuit, there are data paths of varying widths. The variable n is used to tell the function how many bits wide to trim a 32-bit int. This applies to positive and negative numbers.