PIC32MX have three special function registers (SFR) for IO. This registers that allow for atomic updating (which takes fewer clock cycles).
SET:
The selected bits are set or equal to 1. Example TRISBSET = 0x00F0 will set bits 4, 5, 6 and 7.
CLR:
The selected bits are cleared or equal to 0. Example TRISBCLR = 0x00F0 will clear bits 4, 5, 6 and 7.
INV:
The selected bits are inverted/toggled (1 to 0 or 0 to 1). Example TRISBINV = 0x00F0 will invert/toggle bits 4, 5, 6 and 7.
References:

