Motor Mixing Equations

Hi, may I ask where is the motor mixing equations explicitly written in the Arducopter code? I have read in the documentation that the motor mixing is in AP_Motors, but I would like to see the equation of summing the P, I, and D values for the roll, pitch, and yaw movement for each motors.