XML 57 R45.htm IDEA: XBRL DOCUMENT v3.8.0.1
Net Income (Loss) per Share (Tables)
9 Months Ended
Apr. 28, 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
 
Nine Months Ended
 
April 28,
2018
 
April 29,
2017
 
April 28,
2018
 
April 29,
2017
Net income (loss)
$
2,691

 
$
2,515

 
$
(3,693
)
 
$
7,185

Weighted-average shares—basic
4,791

 
5,005

 
4,892

 
5,015

Effect of dilutive potential common shares
53

 
40

 

 
41

Weighted-average shares—diluted
4,844

 
5,045

 
4,892

 
5,056

Net income (loss) per share—basic
$
0.56

 
$
0.50

 
$
(0.76
)
 
$
1.43

Net income (loss) per share—diluted
$
0.56

 
$
0.50

 
$
(0.76
)
 
$
1.42