From 462563271edd528e1785ed30beff1683f1859ac2 Mon Sep 17 00:00:00 2001 From: jofret Date: Fri, 5 Jun 2009 10:01:32 +0000 Subject: OpLogNe management --- includes/sci2clib.h | 1 + macros/CFiles/sci2cincludes/OpLogNe.h | 98 ------------------------------- macros/findDeps/getAllInterfaces.sci | 1 + src/c/operations/interfaces/int_OpLogNe.h | 98 +++++++++++++++++++++++++++++++ 4 files changed, 100 insertions(+), 98 deletions(-) delete mode 100644 macros/CFiles/sci2cincludes/OpLogNe.h create mode 100644 src/c/operations/interfaces/int_OpLogNe.h diff --git a/includes/sci2clib.h b/includes/sci2clib.h index 6ff407c4..b6ac037a 100644 --- a/includes/sci2clib.h +++ b/includes/sci2clib.h @@ -184,6 +184,7 @@ #include "int_OpDotBackSlash.h" /* interfacing comparison */ #include "int_OpLogEq.h" +#include "int_OpLogNe.h" /* MATRIX OPERATIONS */ diff --git a/macros/CFiles/sci2cincludes/OpLogNe.h b/macros/CFiles/sci2cincludes/OpLogNe.h deleted file mode 100644 index 238ef483..00000000 --- a/macros/CFiles/sci2cincludes/OpLogNe.h +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008 - INRIA - Aranud Torset - * - * 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 - * - */ - -/* Idem that OpLogEq with a !(negation) behind*/ - -#ifndef __OPLOGNE_H__ -#define __OPLOGNE_H__ - -#include "floatComplex.h" -#include "doubleComplex.h" - -#define s0s0OpLogNes0(in1,in2) (float) !(in1 == in2) -#define d0d0OpLogNed0(in1,in2) (double) !(in1 == in2) -#define c0c0OpLogNes0(in1,in2) (float) !((creals(in1) == creals(in2)) && (cimags(in1) == cimags(in2))) -#define z0z0OpLogNed0(in1,in2) (double) !((zreals(in1) == zreals(in2)) && (zimags(in1) == zimags(in2))) - -#define s0c0OpLogNes0(in1,in2) (float) !((in1==creals(in2)) && (0==cimags(in2))) -#define d0z0OpLogNed0(in1,in2) (double) !((in1==zreals(in2)) && (0==zimags(in2))) -#define c0s0OpLogNes0(in1,in2) s0c0OpLogNes0(in2,in1) -#define z0d0OpLogNed0(in1,in2) d0z0OpLogNed0(in2,in1) - - - -#define s2s0OpLogNes2(in1,size,in2,out) {int i;\ - for (i=0;i