diff options
-rw-r--r-- | src/auxiliaryFunctions/includes/max.h | 18 | ||||
-rw-r--r-- | src/auxiliaryFunctions/includes/min.h | 17 |
2 files changed, 35 insertions, 0 deletions
diff --git a/src/auxiliaryFunctions/includes/max.h b/src/auxiliaryFunctions/includes/max.h new file mode 100644 index 00000000..30317114 --- /dev/null +++ b/src/auxiliaryFunctions/includes/max.h @@ -0,0 +1,18 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008-2008 - INRIA - Bruno JOFRET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + * + */ + +#ifndef __MAX_H__ +#define __MAX_H__ + +#define max(a,b) (a>=b?a:b) + +#endif /* !__MAX_H__ */ diff --git a/src/auxiliaryFunctions/includes/min.h b/src/auxiliaryFunctions/includes/min.h new file mode 100644 index 00000000..462bd671 --- /dev/null +++ b/src/auxiliaryFunctions/includes/min.h @@ -0,0 +1,17 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008-2008 - INRIA - Bruno JOFRET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + * + */ +#ifndef __MIN_H__ +#define __MIN_H__ + +#define min(a,b) (a<=b?a:b) + +#endif /* !__MIN_H__ */ |