Available-for-Sale Debt Investments and Equity Investments (Gross Realized Gains and Gross Realized Losses Related to Available-for-Sale Investment) (Details) - USD ($) $ in Millions |
3 Months Ended | |
|---|---|---|
Oct. 27, 2018 |
Oct. 28, 2017 |
|
| Investments [Abstract] | ||
| Gross realized gains | $ 2 | $ 8 |
| Gross realized losses | (8) | (4) |
| Total | $ (6) | $ 4 |