From 853aa42539de40bdcf220c0066b89e6da5d38936 Mon Sep 17 00:00:00 2001 From: torset Date: Tue, 17 Feb 2009 15:34:23 +0000 Subject: add max function for arrays --- src/auxiliaryFunctions/interfaces/int_max.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/auxiliaryFunctions/interfaces/int_max.h (limited to 'src/auxiliaryFunctions/interfaces/int_max.h') diff --git a/src/auxiliaryFunctions/interfaces/int_max.h b/src/auxiliaryFunctions/interfaces/int_max.h new file mode 100644 index 00000000..a3f0562d --- /dev/null +++ b/src/auxiliaryFunctions/interfaces/int_max.h @@ -0,0 +1,26 @@ +/* + * 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 + * + */ + +/* THIS IS AN AUTOMATICALLY GENERATED FILE : DO NOT EDIT BY HAND. */ + +#ifndef __INT_MAX_H__ +#define __INT_MAX_H__ + +#define s0s0maxs0(in1,in2) max(in1,in2) + +#define d0d0maxd0(in1,in2) max(in1,in2) + +#define s2s2maxs2(in,size,out) maxa(in1, size[0]*size[1], in2, size[0]*size[1], out) + +#define d2d2maxd2(in,size,out) maxa(in1, size[0]*size[1], in2, size[0]*size[1], out) + +#endif /* !__INT_MAX_H__ */ -- cgit