U.S. equities gained at midday as tech and consumer discretionary stocks gained after a slew of fresh earnings reports.