Qualcomm forecast beats estimates as diversification efforts pay off