Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
samueltardieu committed Jan 18, 2024
1 parent cfa7e17 commit 9c92ade
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 16 deletions.
3 changes: 1 addition & 2 deletions examples/case-study-ardupilot/flt-mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ int PID_altitude(int PID_set_Point, int PID_current_Point) {
/* Computes the error */

altitude_I += (float)PID_error * dt;
altitude_I =
constrain(altitude_I, 20, -20); /* Limit the PID integrator... */
altitude_I = constrain(altitude_I, 20, -20); /* Limit the PID integrator... */
/* Integratior part */

altitude_D =
Expand Down
3 changes: 1 addition & 2 deletions examples/case-study-ardupilot/originalcode-adaptation.c
Original file line number Diff line number Diff line change
Expand Up @@ -854,8 +854,7 @@ int PID_altitude(int PID_set_Point, int PID_current_Point) {
/* Computes the error */

altitude_I += (float)PID_error * dt;
altitude_I =
constrain(altitude_I, 20, -20); /* Limit the PID integrator... */
altitude_I = constrain(altitude_I, 20, -20); /* Limit the PID integrator... */
/* Integratior part */

altitude_D =
Expand Down
3 changes: 1 addition & 2 deletions examples/case-study-ardupilot/user-functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ int PID_altitude(int PID_set_Point, int PID_current_Point) {
/* Computes the error */

altitude_I += (float)PID_error * dt;
altitude_I =
constrain(altitude_I, 20, -20); /* Limit the PID integrator... */
altitude_I = constrain(altitude_I, 20, -20); /* Limit the PID integrator... */
/* Integratior part */

altitude_D =
Expand Down
2 changes: 1 addition & 1 deletion kernel/arch/x86/x86-qemu/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#if (defined POK_NEEDS_DEBUG) || (defined POK_NEEDS_USER_DEBUG)

//#ifdef POK_NEEDS_DEBUG
// #ifdef POK_NEEDS_DEBUG

#include "../event.h"
#include <libc.h>
Expand Down
14 changes: 7 additions & 7 deletions libpok/libm/ilogb.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ int ilogb(double x) {
if ((hx | lx) == 0)
return 0x80000001; /* ilogb(0) = 0x80000001 */
else /* subnormal x */
if (hx == 0) {
for (ix = -1043; lx > 0; lx <<= 1)
ix -= 1;
} else {
for (ix = -1022, hx <<= 11; hx > 0; hx <<= 1)
ix -= 1;
}
if (hx == 0) {
for (ix = -1043; lx > 0; lx <<= 1)
ix -= 1;
} else {
for (ix = -1022, hx <<= 11; hx > 0; hx <<= 1)
ix -= 1;
}
return ix;
} else if (hx < 0x7ff00000)
return (hx >> 20) - 1023;
Expand Down
2 changes: 1 addition & 1 deletion libpok/protocols/blowfish/blowfish.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
#ifndef HEADER_BLOWFISH_H
#define HEADER_BLOWFISH_H

//#include <openssl/e_os2.h>
// #include <openssl/e_os2.h>
#include <types.h>

#define BF_ENCRYPT 1
Expand Down
2 changes: 1 addition & 1 deletion libpok/protocols/des/des_locl.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
#include <libc/stdlib.h>
#include <libc/string.h>
#endif
//#include <libm.h>
// #include <libm.h>
#endif
#endif
#include "des.h"
Expand Down

0 comments on commit 9c92ade

Please sign in to comment.