v3.8.0.1
Investments - Additional Information (Detail) - USD ($)
shares in Millions, $ in Millions
3 Months Ended 12 Months Ended
Mar. 31, 2018
Dec. 31, 2017
Investment [Line Items]    
Held-to-maturity investments $ 132 $ 102
Foreign government debt, after five years through ten years 12  
Foreign government debt, after ten years $ 120  
PennyMac [Member]    
Investment [Line Items]    
Ownership percentage 20.00% 20.00%
Shares and units 16 16
Carrying value - equity method investment $ 363 $ 342
Fair value of equity method investments $ 352 $ 348