HomePhabricator

[builtins] Deduplicate __eqsf2 and __gtsf2 via macro

Authored by phosek on May 20 2019, 4:34 PM.

Description

[builtins] Deduplicate eqsf2 and gtsf2 via macro

The only difference between eqsf2 and gtsf2 is whether they return
1 or -1 on NaN. Rather than duplicating all the code, use a macro to
define the function twice and use an argument to decide whether to
negate the return value.

Differential Revision: https://reviews.llvm.org/D61919

llvm-svn: 361207

Details

Committed
sidorovdMay 24 2019, 5:43 AM
Differential Revision
D61919: [builtins] Deduplicate __eqsf2 and __gtsf2
Parents
rGa25ce58dd92e: [COFF] Store alignment in log2 form, NFC
Branches
Unknown
Tags
Unknown