XML 57 R45.htm IDEA: XBRL DOCUMENT v3.8.0.1
Net Income (Loss) per Share (Tables)
6 Months Ended
Jan. 27, 2018
Earnings Per Share [Abstract]  
Calculation of Basic and Diluted Net Income per Share
The following table presents the calculation of basic and diluted net income (loss) per share (in millions, except per-share amounts):
 
Three Months Ended
 
Six Months Ended
 
January 27,
2018
 
January 28,
2017
 
January 27,
2018
 
January 28,
2017
Net income (loss)
$
(8,778
)
 
$
2,348

 
$
(6,384
)
 
$
4,670

Weighted-average shares—basic
4,924

 
5,015

 
4,942

 
5,021

Effect of dilutive potential common shares

 
25

 

 
33

Weighted-average shares—diluted
4,924

 
5,040

 
4,942

 
5,054

Net income (loss) per share—basic
$
(1.78
)
 
$
0.47

 
$
(1.29
)
 
$
0.93

Net income (loss) per share—diluted
$
(1.78
)
 
$
0.47

 
$
(1.29
)
 
$
0.92