Stock markets mostly extended gains on Thursday as investors digested company earnings, including forecast-beating results from chip titan Nvidia.