BlinkenArea - GitList
Repositories
Blog
Wiki
mips_sys
Code
Commits
Branches
Tags
Search
Tree:
c2b0401
Branches
Tags
master
mips_sys
fw
macros.h
added file headers
Stefan Schuermans
commited
c2b0401
at 2012-04-08 11:54:40
macros.h
Blame
History
Raw
/* MIPS I system * Copyright 2011-2012 Stefan Schuermans <stefan@schuermans.info> * Copyleft GNU public license V2 or later * http://www.gnu.org/copyleft/gpl.html */ #ifndef MACROS_H #define MACROS_H // minimum and maximum #define min(a, b) ((a) < (b) ? (a) : (b)) #define max(a, b) ((a) > (b) ? (a) : (b)) // number of entries in an array #define count(array) (sizeof((array)) / sizeof((array)[0])) #endif // #ifndef INC_macros