c Scilab ( http://www.scilab.org/ ) - This file is part of Scilab c Copyright (C) INRIA c c This file must be used under the terms of the CeCILL. c This source file is licensed as described in the file COPYING, which c you should have received as part of this distribution. The terms c are also available at c http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt subroutine unarybit(op) c addition include 'stack.h' Cc (DLL Intel Fortran) cDEC$ IF DEFINED (FORDLL) cDEC$ ATTRIBUTES DLLIMPORT:: /mtlbc/ cDEC$ ENDIF common /mtlbc/ mmode integer op external memused integer memused integer iadr,sadr c iadr(l)=l+l-1 sadr(l)=(l/2)+1 c il1=iadr(lstk(top)) if(istk(il1).lt.0) il1=iadr(istk(il1+1)) m1=istk(il1+1) n1=istk(il1+2) it1=istk(il1+3) l1=il1+4 mn1=m1*n1 07 continue if (mn1.eq.0) then call error(43) return elseif (m1 .lt. 0) then c . eye+vector call error(43) return else call genbitops(it1,op,mn1,istk(l1),1,0,1) lstk(top+1)=sadr(l1+memused(it1,mn1)) endif 999 return end