Skip to content

Commit 84b7ec8

Browse files
enhance: remove duplicate code in ArithHelperF32 in SVE for bitset (#43951)
pr: #43950 Signed-off-by: Alexandr Guzhva <alexanderguzhva@gmail.com>
1 parent bd9fd42 commit 84b7ec8

File tree

1 file changed

+0
-24
lines changed
  • internal/core/src/bitset/detail/platform/arm

1 file changed

+0
-24
lines changed

internal/core/src/bitset/detail/platform/arm/sve-impl.h

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,30 +1318,6 @@ struct ArithHelperI64<ArithOpType::Mul, CmpOp> {
13181318
template <ArithOpType AOp, CompareOpType CmpOp>
13191319
struct ArithHelperF32 {};
13201320

1321-
template <CompareOpType CmpOp>
1322-
struct ArithHelperF32<ArithOpType::Div, CmpOp> {
1323-
static inline svbool_t
1324-
op_special(const svbool_t pred,
1325-
const svfloat32_t left,
1326-
const svfloat32_t right,
1327-
const svfloat32_t value) {
1328-
// this is valid for the positive denominator, == and != cases.
1329-
// left == right * value
1330-
return CmpHelper<CmpOp>::compare(
1331-
pred, left, svmul_f32_z(pred, right, value));
1332-
}
1333-
1334-
static inline svbool_t
1335-
op(const svbool_t pred,
1336-
const svfloat32_t left,
1337-
const svfloat32_t right,
1338-
const svfloat32_t value) {
1339-
// left / right == value
1340-
return CmpHelper<CmpOp>::compare(
1341-
pred, svdiv_f32_z(pred, left, right), value);
1342-
}
1343-
};
1344-
13451321
template <CompareOpType CmpOp>
13461322
struct ArithHelperF32<ArithOpType::Add, CmpOp> {
13471323
static inline svbool_t

0 commit comments

Comments
 (0)