The better performance came as its chip division, is expected to report its first quarterly profit in five quarters, as memory chip prices bounce back from a deep trough