29.1.3 __builtin_bcsc0 Built-in Function

Description

Clear the non-zero bits present in the clr mask as well as set the non-zero bits present in the set mask from the coprocessor 0 register specified by rn (register number) and sel (register bank).

Prototype

unsigned int __builtin_bcsc0(rn, sel, clr, set);

Argument

rn : cp0 register number
sel : cp0 select (bank) number
clr : 32-bit mask to clear
set : 32-bit mask to set

Return Value

unsigned int: the original CP register value

Assembler Operator/ Machine Instruction

mfc0 t, cs
nor d, s, t
and d, s, j
or d, s, t
mtc0 s, cd

Error Messages

None.