v3.19.1

Net Income (Loss) per Share (Tables) | 9 Months Ended
--- | ---
Apr. 27, 2019
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 27, 2019 |  | April 28, 2018 |  | April 27, 2019 |  | April 28, 2018
Net income (loss) | $ | 3,044 |  |  | $ | 2,691 |  |  | $ | 9,415 |  |  | $ | (3,693 | )
Weighted-average shares—basic | 4,370 |  |  | 4,791 |  |  | 4,468 |  |  | 4,892 |
Effect of dilutive potential common shares | 45 |  |  | 53 |  |  | 41 |  |  | — |
Weighted-average shares—diluted | 4,415 |  |  | 4,844 |  |  | 4,509 |  |  | 4,892 |
Net income (loss) per share—basic | $ | 0.70 |  |  | $ | 0.56 |  |  | $ | 2.11 |  |  | $ | (0.76 | )
Net income (loss) per share—diluted | $ | 0.69 |  |  | $ | 0.56 |  |  | $ | 2.09 |  |  | $ | (0.76 | )

X
- References No definition available. + Details
Name: | us-gaap_EarningsPerShareAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257 + Details
Name: | us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration