The following table sets forth the computation of basic and diluted earnings (loss) per share: | | | | | | | | | | | | | | | | | | Three Months Ended | | Six Months Ended | | December 26, 2015 | | December 27, 2014 | | December 26, 2015 | | December 27, 2014 | | (in thousands, except per share data) | Numerator for basic earnings (loss) per share and diluted earnings (loss) per share | | | | | | | | Net income (loss) | $ | 67,469 |
| | $ | (72,034 | ) | | $ | (4,674 | ) | | $ | 27,946 |
| | | | | | | | | Denominator for basic earnings (loss) per share | 285,526 |
| | 282,992 |
| | 285,057 |
| | 283,539 |
| Effect of dilutive securities: | | | | | | | | Stock options, ESPP, RSUs, and MSUs | 4,995 |
| | — |
| | — |
| | 5,337 |
| Denominator for diluted earnings (loss) per share | 290,521 |
| | 282,992 |
| | 285,057 |
| | 288,876 |
| | | | | | | | | Earnings (loss) per share | | | | | | | | Basic | $ | 0.24 |
| | $ | (0.25 | ) | | $ | (0.02 | ) | | $ | 0.10 |
| Diluted | $ | 0.23 |
| | $ | (0.25 | ) | | $ | (0.02 | ) | | $ | 0.10 |
|
|