* * $Id: mbytet.F,v 1.1.1.1 1996/02/15 17:50:13 mclareni Exp $ * * $Log: mbytet.F,v $ * Revision 1.1.1.1 1996/02/15 17:50:13 mclareni * Kernlib * * #include "kerngen/pilot.h" #if defined(CERNLIB_QMSUN) #include "sungs/mbytet.F" #else FUNCTION MBYTET (MZ,IZW,IZP,NZB) C C CERN PROGLIB# M421 MBYTET .VERSION KERNFOR 4.23 891215 C ORIG. 13/03/89 JZ C C This non-ANSI code is a default which may be slow, if so C it should be replaced by a machine-specific fast routine #include "kerngen/wordsize.inc" #if !defined(CERNLIB_QISASTD) #include "kerngen/q_andor.inc" #include "kerngen/q_shift.inc" * Ignoring t=pass #endif #if !defined(CERNLIB_QISASTD) MBYTET = IAND (IZW, NOT(ISHFTR(ISHFTL(NOT(MZ),NBITPW-NZB), + NBITPW+1-IZP-NZB)) ) #endif #if defined(CERNLIB_QISASTD) MBYTET = IAND (IZW, NOT(ISHFT (ISHFT (NOT(MZ),NBITPW-NZB), + -NBITPW-1+IZP+NZB)) ) #endif RETURN END #endif