Annual report pursuant to Section 13 and 15(d)

Net Income (Loss) Per Share - Calculation of Basic and Diluted Net Income (Loss) Per Share (Detail)

v3.8.0.1
Net Income (Loss) Per Share - Calculation of Basic and Diluted Net Income (Loss) Per Share (Detail) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
3 Months Ended 12 Months Ended
Dec. 31, 2017
Sep. 30, 2017
Jun. 30, 2017
Mar. 31, 2017
Dec. 31, 2016
Sep. 30, 2016
Jun. 30, 2016
Mar. 31, 2016
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2015
Numerator:                      
Net income (loss) $ (20,865) $ 6,834 $ 6,213 $ 8,195 $ 7,361 $ 4,210 $ 2,083 $ 2,996 $ 377 $ 16,650 $ (9,218)
Basic:                      
Weighted average shares used in computing basic net income (loss) per share:                 79,433 76,854 76,689
Diluted:                      
Weighted average shares used in computing basic net income (loss) per share:                 79,433 76,854 76,689
Add weighted average effect of dilutive securities:                      
Stock options and restricted stock                 2,884 989 0
Convertible notes                 81 0 0
Weighted average shares used in computing diluted net income (loss) per share:                 82,398 77,843 76,689
Net income (loss) per share attributable to common stockholders:                      
Basic (in dollars per share) $ (0.26) $ 0.09 $ 0.08 $ 0.10 $ 0.09 $ 0.05 $ 0.03 $ 0.04 $ 0.00 $ 0.22 $ (0.12)
Diluted (in dollars per share) $ (0.26) $ 0.08 $ 0.08 $ 0.10 $ 0.09 $ 0.05 $ 0.03 $ 0.04 $ 0.00 $ 0.21 $ (0.12)