diff options
author | jofret | 2008-04-11 12:55:31 +0000 |
---|---|---|
committer | jofret | 2008-04-11 12:55:31 +0000 |
commit | a67b4c0e0797b1bc02da7d31eac13d8c0af1515f (patch) | |
tree | d11e9b69a35624811a0de3f22bf9913e8d13c1b7 /src/auxiliaryFunctions | |
parent | 7edbd124b350b41741c4c9f96a9d21180c5d029c (diff) | |
download | scilab2c-a67b4c0e0797b1bc02da7d31eac13d8c0af1515f.tar.gz scilab2c-a67b4c0e0797b1bc02da7d31eac13d8c0af1515f.tar.bz2 scilab2c-a67b4c0e0797b1bc02da7d31eac13d8c0af1515f.zip |
Min and Max defines
Diffstat (limited to 'src/auxiliaryFunctions')
-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__ */ |