(file) Return to bit_wrappers.f CVS log (file) (dir) Up to [HallC] / Analyzer / PORT

File: [HallC] / Analyzer / PORT / bit_wrappers.f (download)
Revision: 1.4, Wed Sep 24 23:08:06 2008 UTC (15 years, 11 months ago) by jones
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +12 -1 lines
Updated to run with gfortran compiler

*
*     Wrappers for F2C intrinsic functions that have different names
*     from standard f77s.
*
* $Log: bit_wrappers.f,v $
* Revision 1.4  2008/09/25 00:08:06  jones
* Updated to run with gfortran compiler
*
* Revision 1.3.24.1  2007/09/10 20:28:01  pcarter
* Implemented changes to allow compilation on RHEL 3,4,5 and MacOSX
*
* Revision 1.3  1999/11/04 20:36:32  saw
* Linux/G77 compatibility fixes - Add jieor function
*
* Revision 1.2  1996/11/22 17:06:27  saw
* (SAW) Move trig routines to trig_wrappers.f
*
* Revision 1.1  1996/09/09 13:34:26  saw
* Initial revision
*
*
      integer*4 function jishft(a1,a2)
      external lshift, rshift
      integer lshift, rshift
      integer*4 a1,a2
      if(a2.lt.0) then
         jishft = rshift(a1,-a2)         
      else
         jishft = lshift(a1,a2)
      endif
      return
      end

      integer*4 function jiand(a1,a2)
      integer*4 a1,a2
      jiand = and(a1,a2)
      return
      end

      integer*4 function jieor(a1,a2)
      integer*4 a1,a2
      jieor = xor(a1,a2)
      return
      end

      integer*4 function jibset(a1,a2)
      integer*4 a1,a2
      external lshift
      integer lshift
      jibset = or(a1,lshift(1,a2))
      return
      end

      logical*4 function bjtest(a1,a2)
      external lshift
      integer lshift
      integer*4 a1,a2
      bjtest = (and(a1,lshift(1,a2)).ne.0)
      return
      end

Analyzer/Replay: Mark Jones, Documents: Stephen Wood
Powered by
ViewCVS 0.9.2-cvsgraph-1.4.0