v3.10.0.1

Fair Value (Tables) | 3 Months Ended
--- | ---
Oct. 27, 2018
Fair Value Disclosures [Abstract] |
Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis | Assets and liabilities measured at fair value on a recurring basis were as follows (in millions):
| OCTOBER 27, 2018 FAIR VALUE MEASUREMENTS |  | JULY 28, 2018 FAIR VALUE MEASUREMENTS
| Level 1 |  | Level 2 |  | Total Balance |  | Level 1 |  | Level 2 |  | Total Balance
Assets: |  |  |  |  |  |  |  |  |  |  |
Cash equivalents: |  |  |  |  |  |  |  |  |  |  |
Money market funds | $ | 6,332 |  |  | $ | — |  |  | $ | 6,332 |  |  | $ | 6,890 |  |  | $ | — |  |  | $ | 6,890 |
Commercial paper | — |  |  | 210 |  |  | 210 |  |  | — |  |  | — |  |  | — |
Certificates of deposit | — |  |  | 20 |  |  | 20 |  |  | — |  |  | — |  |  | — |
Repurchase agreements | — |  |  | 16 |  |  | 16 |  |  | — |  |  | — |  |  | — |
Available-for-sale debt investments: |  |  |  |  |  |  |  |  |  |  |
U.S. government securities | — |  |  | 5,754 |  |  | 5,754 |  |  | — |  |  | 7,275 |  |  | 7,275 |
U.S. government agency securities | — |  |  | 430 |  |  | 430 |  |  | — |  |  | 727 |  |  | 727 |
Non-U.S. government and agency securities | — |  |  | 153 |  |  | 153 |  |  | — |  |  | 208 |  |  | 208 |
Corporate debt securities | — |  |  | 26,031 |  |  | 26,031 |  |  | — |  |  | 27,364 |  |  | 27,364 |
U.S. agency mortgage-backed securities | — |  |  | 1,421 |  |  | 1,421 |  |  | — |  |  | 1,435 |  |  | 1,435 |
Commercial paper | — |  |  | 309 |  |  | 309 |  |  | — |  |  | — |  |  | — |
Certificates of deposit | — |  |  | 85 |  |  | 85 |  |  | — |  |  | — |  |  | — |
Equity investments: |  |  |  |  |  |  |  |  |  |  |
Marketable equity securities | — |  |  | — |  |  | — |  |  | 605 |  |  | — |  |  | 605 |
Derivative assets | — |  |  | 6 |  |  | 6 |  |  | — |  |  | 2 |  |  | 2 |
Total | $ | 6,332 |  |  | $ | 34,435 |  |  | $ | 40,767 |  |  | $ | 7,495 |  |  | $ | 37,011 |  |  | $ | 44,506 |
Liabilities: |  |  |  |  |  |  |  |  |  |  |
Derivative liabilities | $ | — |  |  | $ | 91 |  |  | $ | 91 |  |  | $ | — |  |  | $ | 74 |  |  | $ | 74 |
Total | $ | — |  |  | $ | 91 |  |  | $ | 91 |  |  | $ | — |  |  | $ | 74 |  |  | $ | 74 |
Fair Value Measurements, Nonrecurring | The following table presents gains and losses on assets that were measured at fair value on a nonrecurring basis (in millions):
| TOTAL GAINS (LOSSES) FOR THE THREE MONTHS ENDED
| October 27, 2018 |  | October 28, 2017
Non-marketable equity securities | $ | (6 | ) |  | $ | (21 | )

X
- Definition Tabular disclosure of assets and liabilities by class, including financial instruments measured at fair value that are classified in shareholders' equity, if any, that are measured at fair value on a nonrecurring basis in periods after initial recognition (for example, impaired assets). Disclosures may include, but are not limited to: (a) the fair value measurements recorded and the reasons for the measurements and (b) the level within the fair value hierarchy in which the fair value measurements are categorized in their entirety (levels 1, 2, 3). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (bbb) -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19190-110258 + Details
Name: | us-gaap_FairValueAssetsMeasuredOnNonrecurringBasisTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

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

X
- Definition Tabular disclosure of assets and liabilities, including [financial] instruments measured at fair value that are classified in stockholders' equity, if any, that are measured at fair value on a recurring basis. The disclosures contemplated herein include the fair value measurements at the reporting date by the level within the fair value hierarchy in which the fair value measurements in their entirety fall, segregating fair value measurements using quoted prices in active markets for identical assets (Level 1), significant other observable inputs (Level 2), and significant unobservable inputs (Level 3). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19190-110258 + Details
Name: | us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration