Available-for-Sale Debt Investments and Equity Investments (Summary of Gains and Losses Recognized on Marketable and Non-marketable Equity Securities) (Details) - USD ($) $ in Millions |
3 Months Ended | 9 Months Ended |
|---|---|---|
Apr. 27, 2019 |
Apr. 27, 2019 |
|
| Adjustments to non-marketable equity securities measured using the measurement alternative: | ||
| Upward adjustments | $ 9 | $ 33 |
| Downward adjustments, including impairments | (4) | (22) |
| Net upward adjustments | 5 | 11 |
| Net gains and losses recognized during the period on equity investments | 3 | 78 |
| Less: Net gains and losses recognized on equity investments sold | (44) | (51) |
| Unrealized gains and losses recognized during reporting period on equity securities still held at the reporting date | $ (41) | $ 27 |