1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Remove unneeded library function 'powerf()'.

This commit is contained in:
mikeller 2021-04-26 16:41:04 +12:00
parent 76b6415d34
commit 6b87b3685c
7 changed files with 12 additions and 25 deletions

View file

@ -115,13 +115,6 @@ int gcd(int num, int denom)
return gcd(denom, num % denom);
}
float powerf(float base, int exp) {
float result = base;
for (int count = 1; count < exp; count++) result *= base;
return result;
}
int32_t applyDeadband(const int32_t value, const int32_t deadband)
{
if (ABS(value) < deadband) {