Get the latest news alerts: at Twitter.

Associated Press

SAN FRANCISCO — Advanced Micro Devices Inc. returned to profitability in the first quarter as the world’s No. 2 microprocessor maker benefited from a strengthening computer market.

The company also got a lift from an accounting boost related to the manufacturing division it spun off last year.

The numbers suggest that AMD is being helped by some of the same trends as its main rival. Intel Corp. reported this week that its first-quarter profit nearly quadrupled.

AMD said after the market closed Thursday that it earned $257 million, or 35 cents per share. In the same period last year AMD lost $416 million, or 66 cents per share.

Excluding the gain from the spinoff, AMD would have earned 9 cents per share in the most recent quarter.