Removed needless inlines
This commit is contained in:
parent
c72abd8bbf
commit
316fbbc66e
1 changed files with 7 additions and 7 deletions
14
logic.c
14
logic.c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue