Skip to content

Commit 2b090f0

Browse files
authored
wpimath: Remove floorDiv and floorMod
These provide identical results to the native Python operators `//` and `%`, with worse performance.
1 parent 8bed6a9 commit 2b090f0

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

subprojects/robotpy-wpimath/semiwrap/MathUtil.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,9 @@ functions:
44
- [double]
55
AngleModulus:
66
FloorDiv:
7-
template_impls:
8-
- [int64_t, int64_t]
9-
# work around GCC 10 issue on raspbian
10-
cpp_code: |
11-
[](int64_t x, int64_t y) -> int64_t {
12-
return frc::FloorDiv(x, y);
13-
}
7+
ignore: true
148
FloorMod:
15-
template_impls:
16-
- [int64_t, int64_t]
17-
# work around GCC 10 issue on raspbian
18-
cpp_code: |
19-
[](int64_t x, int64_t y) -> int64_t {
20-
return frc::FloorMod(x, y);
21-
}
9+
ignore: true
2210
ApplyDeadband:
2311
param_override:
2412
maxMagnitude:

0 commit comments

Comments
 (0)