summaryrefslogtreecommitdiff
path: root/2.3-1/interfaces/int_cumsum.h
blob: 0eda0ac9bf94f39eba9765d196a2acb98783a9d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* Copyright (C) 2016 - IIT Bombay - FOSSEE

 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
 Author: Siddhesh Wani
 Organization: FOSSEE, IIT Bombay
 Email: toolbox@scilab.in
*/

#ifndef __INT_CUMSUM_H__
#define __INT_CUMSUM_H__


#ifdef  __cplusplus
extern "C" {
#endif

#define d0cumsumd0(in) 		in
#define s0cumsums0(in) 		in
#define u80cumsumu80(in) 	in
#define u160cumsumu160(in) 	in
#define i80cumsumi80(in) 	in
#define i160cumsumi160(in) 	in

#define d2cumsumd2(in1, size1, out) 	dcumsuma(in1, size1[0], size1[1], out)
#define s2cumsums2(in1, size1, out) 	scumsuma(in1, size1[0], size1[1], out)
#define u82cumsumu82(in1, size1, out) 	u8cumsuma(in1, size1[0], size1[1], out)
#define u162cumsumu162(in1, size1, out)	u16cumsuma(in1, size1[0], size1[1], out)
#define i82cumsumi82(in1, size1, out) 	i8cumsuma(in1, size1[0], size1[1], out)
#define i162cumsumi162(in1, size1, out) i16cumsuma(in1, size1[0], size1[1], out)

#define d2g2cumsumd2(in1, size1, in2, size2, out) (in2[0]=='r') ? \
						drowcumsuma(in1,size1[0],size1[1],out) : dcolumncumsuma(in1,size1[0],size1[1],out)
#define s2g2cumsums2(in1, size1, in2, size2, out) (in2[0]=='r') ? \
						srowcumsuma(in1,size1[0],size1[1],out) : scolumncumsuma(in1,size1[0],size1[1],out)
#define u82g2cumsumu82(in1, size1, in2, size2, out) (in2[0]=='r') ? \
						u8rowcumsuma(in1,size1[0],size1[1],out) : u8columncumsuma(in1,size1[0],size1[1],out)
#define i82g2cumsumi82(in1, size1, in2, size2, out) (in2[0]=='r') ? \
						i8rowcumsuma(in1,size1[0],size1[1],out) : i8columncumsuma(in1,size1[0],size1[1],out)
#define u162g2cumsumu162(in1, size1, in2, size2, out) (in2[0]=='r') ? \
						u16rowcumsuma(in1,size1[0],size1[1],out) : u16columncumsuma(in1,size1[0],size1[1],out)
#define i162g2cumsumi162(in1, size1, in2, size2, out) (in2[0]=='r') ? \
						i16rowcumsuma(in1,size1[0],size1[1],out) : i16columncumsuma(in1,size1[0],size1[1],out)



#ifdef  __cplusplus
} /* extern "C" */
#endif

#endif /*__INT_CUMSUM_H__*/