/* ** -*- C -*- ** ** ** Made by Raffaele.Nutricato@tiscali.it ** ** Copyright Raffaele Nutricato */ /* Modified by Arnaud Torset */ #ifndef __OPLOGEQ_H__ #define __OPLOGEQ_H__ #include "floatComplex.h" #include "doubleComplex.h" #include "types.h" #define s0s0OpLogEqs0(in1,in2) (float) (in1 == in2) #define d0d0OpLogEqd0(in1,in2) (double) (in1 == in2) #define c0c0OpLogEqs0(in1,in2) (float) ((creals(in1) == creals(in2)) && (cimags(in1) == cimags(in2))) #define z0z0OpLogEqd0(in1,in2) (double) ((zreals(in1) == zreals(in2)) && (zimags(in1) == zimags(in2))) #define u80u80OpLogEqu80(in1,in2) (uint8) (in1 == in2) #define i80i80OpLogEqi80(in1,in2) (int8) (in1 == in2) #define u160u160OpLogEqu160(in1,in2) (uint16) (in1 == in2) #define i160i160OpLogEqi160(in1,in2) (int16) (in1 == in2) #define s0c0OpLogEqs0(in1,in2) (float) ((in1==creals(in2)) && (0==cimags(in2))) #define d0z0OpLogEqd0(in1,in2) (double) ((in1==zreals(in2)) && (0==zimags(in2))) #define c0s0OpLogEqs0(in1,in2) s0c0OpLogEqs0(in2,in1) #define z0d0OpLogEqd0(in1,in2) d0z0OpLogEqd0(in2,in1) #define u80d0OpLogEqu80(in1,in2) (uint8) (in1 == (uint8)in2) #define i80d0OpLogEqi80(in1,in2) (int8) (in1 == (int8)in2) #define u160d0OpLogEqu160(in1,in2) (uint16) (in1 == (uint16)in2) #define i160d0OpLogEqi160(in1,in2) (int16) (in1 == (int16)in2) #define d0u80OpLogEqu80(in1,in2) (uint8) ((uint8)in1 == in2) #define d0i80OpLogEqi80(in1,in2) (int8) ((int8)in1 == in2) #define d0u160OpLogEqu160(in1,in2) (uint16) ((uint16)in1 == in2) #define d0i160OpLogEqi160(in1,in2) (int16) ((int16)in1 == in2) #define s2s0OpLogEqs2(in1,size,in2,out) {int i;\ for (i=0;i