Skip to content

Commit

Permalink
removed unused macros that where forgotten in the last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzuger committed Jan 29, 2021
1 parent becfdb7 commit 2b95b57
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions tlc5947/color.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,21 +163,4 @@ bool rgbvalid(rgb c){
}


/**
* typesafe min(a,b) / max(a,b) macros
* should probably be moved to a universal macro header...
*/
#define max(a,b) \
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a > _b ? _a : _b; })
#define min(a,b) \
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a < _b ? _a : _b; })

#define max3(a,b,c) (max(max(a,b),c))
#define min3(a,b,c) (min(min(a,b),c))


#endif /* defined(MODULE_TLC5947_ENABLED) && MODULE_TLC5947_ENABLED == 1 */

0 comments on commit 2b95b57

Please sign in to comment.