Hewlett-Packard significantly narrowed the unit share gap between it and Dell on a worldwide basis compared with a year ago.