Income taxes - Income tax expense components (Detail) - USD ($)
$ in Millions
12 Months Ended
Dec. 31, 2018
Dec. 31, 2017
Dec. 31, 2016
Income tax expense:      
Federal $ (1,613) $ (23,427) $ 7,796
State 175 894 556
Foreign 1,117 1,018 888
Total income taxes (321) (21,515) 9,240
Income tax expense:      
Current 5,176 3,299 6,565
Deferred (5,497) (24,814) 2,675
Total income taxes $ (321) $ (21,515) $ 9,240