File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1392,7 +1392,8 @@ int16_t libdivide_s16_recover(const struct libdivide_s16_t *denom) {
1392
1392
}
1393
1393
1394
1394
int16_t libdivide_s16_branchfree_recover (const struct libdivide_s16_branchfree_t *denom) {
1395
- return libdivide_s16_recover ((const struct libdivide_s16_t *)denom);
1395
+ const struct libdivide_s16_t den = {denom->magic , denom->more };
1396
+ return libdivide_s16_recover (&den);
1396
1397
}
1397
1398
1398
1399
// ///////// SINT32
@@ -1564,7 +1565,8 @@ int32_t libdivide_s32_recover(const struct libdivide_s32_t *denom) {
1564
1565
}
1565
1566
1566
1567
int32_t libdivide_s32_branchfree_recover (const struct libdivide_s32_branchfree_t *denom) {
1567
- return libdivide_s32_recover ((const struct libdivide_s32_t *)denom);
1568
+ const struct libdivide_s32_t den = {denom->magic , denom->more };
1569
+ return libdivide_s32_recover (&den);
1568
1570
}
1569
1571
1570
1572
// /////////// SINT64
@@ -1728,7 +1730,8 @@ int64_t libdivide_s64_recover(const struct libdivide_s64_t *denom) {
1728
1730
}
1729
1731
1730
1732
int64_t libdivide_s64_branchfree_recover (const struct libdivide_s64_branchfree_t *denom) {
1731
- return libdivide_s64_recover ((const struct libdivide_s64_t *)denom);
1733
+ const struct libdivide_s64_t den = {denom->magic , denom->more };
1734
+ return libdivide_s64_recover (&den);
1732
1735
}
1733
1736
1734
1737
// Simplest possible vector type division: treat the vector type as an array
You can’t perform that action at this time.
0 commit comments