]> granicus.if.org Git - zfs/commit
Add __divmoddi4 and __udivmoddi4 for 32-bit arch
authorChunwei Chen <tuxoko@gmail.com>
Thu, 3 Aug 2017 17:41:42 +0000 (10:41 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 3 Aug 2017 17:41:42 +0000 (10:41 -0700)
commit6ecfd2b55333dbaf8755bcab53ae9d37b6bca7c1
treefae8fe09a988c9f91419e1d501f1c58b4ea068e0
parent98cdcb8286db2dadf369a22d33a53e49b11e3288
Add __divmoddi4 and __udivmoddi4 for 32-bit arch

gcc-7 seems to use __udivmoddi4 for 64-bit division on 32-bit arch. This
patch implement them so we don't get undefined reference error.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Closes zfsonlinux/zfs#6417
Closes #636
module/spl/spl-generic.c