summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/operations/interfaces/int_OpLogNot.h
blob: 852cd1c7ad43f044fa0cf96e7e9d022049ff1995 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
 * 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_OPLOGNOT_H__
#define __INT_OPLOGNOT_H__

#define s0OpLogNots0(in)			(in==0) ? (float)1 : (float)0

#define d0OpLogNotd0(in)			(in==0) ? (double)1 : (double)0

#define c0OpLogNotc0(in)			(creals(in)==0) ? FloatComplex(1,0) : FloatComplex(0,0)

#define z0OpLogNotz0(in)			(zreals(in)==0) ? DoubleComplex(1,0) : DoubleComplex(0,0)

#define u8OpLogNotu80(in)			(in==0) ? (uint8)1 : (uint8)0

#define i8OpLogNoti80(in)			(in==0) ? (int8)1 : (int8)0

#define u16OpLogNotu160(in)			(in==0) ? (uint16)1 : (uint16)0

#define i16OpLogNoti160(in)			(in==0) ? (int16)1 : (int16)0

#define s2OpLogNots2(in,size,out)		{int i;\
							for (i=0;i<size[0]*size[1];i++)	out[i]=s0OpLogNots0(in[i]);\
							}

#define d2OpLogNotd2(in,size,out)		{int i;\
							for (i=0;i<size[0]*size[1];i++)	out[i]=d0OpLogNotd0(in[i]);\
							}

#define c2OpLogNotc2(in,size,out)		{int i;\
							for (i=0;i<size[0]*size[1];i++)	out[i]=c0OpLogNotc0(in[i]);\
							}

#define z2OpLogNotz2(in,size,out)		{int i;\
							for (i=0;i<size[0]*size[1];i++)	out[i]=z0OpLogNotz0(in[i]);\
							}

#define u82OpLogNotu82(in,size,out)		{int i;\
							for (i=0;i<size[0]*size[1];i++)	out[i]=u80OpLogNotu80(in[i]);\
							}

#define i82OpLogNoti82(in,size,out)		{int i;\
							for (i=0;i<size[0]*size[1];i++)	out[i]=i80OpLogNoti80(in[i]);\
							}

#define u162OpLogNotu162(in,size,out)		{int i;\
							for (i=0;i<size[0]*size[1];i++)	out[i]=u160OpLogNoti160(in[i]);\
							}

#define i162OpLogNoti162(in,size,out)		{int i;\
							for (i=0;i<size[0]*size[1];i++)	out[i]=i160OpLogNotu160(in[i]);\
							}


#endif /* !__INT_OPLOGNOT_H__ */