Removed needless inlines

This commit is contained in:
AnnaSnoeijs 2025-06-25 11:18:46 +02:00
parent c72abd8bbf
commit 316fbbc66e

14
logic.c
View file

@ -18,27 +18,27 @@
*/
#include "logic.h"
static inline int top( const int a, const int b ){
static int top( const int a, const int b ){
return a < b ? b : a;
}
static inline int bottom( const int a, const int b ){
static int bottom( const int a, const int b ){
return a < b ? a : b;
}
static inline int heightMask( const int a ){
static int heightMask( const int a ){
return ( 1 << a ) - 1;
}
static inline int safeHeightMask( const int a ){
static int safeHeightMask( const int a ){
return a > 0 ? heightMask( a ) : 0;
}
static inline int bottomHeightMask( const int a, const int b ){
static int bottomHeightMask( const int a, const int b ){
return safeHeightMask( bottom( a, b ) );
}
inline void playMove(
void playMove(
board_t *boardptr,
const int column
){
@ -47,7 +47,7 @@ inline void playMove(
boardptr->height [ column ]++;
}
inline void calcWins(
void calcWins(
wins_t *wins,
const board_t board,
const int column