Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

vxinvb.c

Go to the documentation of this file.
00001 /*
00002  * $Id: vxinvb.c,v 1.2 2009/02/16 08:04:38 schubert Exp $
00003  *
00004  * Revision 1.1.1.1  2002/06/16 15:18:46  hristov
00005  * Separate distribution  of Geant3
00006  *
00007  * Revision 1.1.1.1  1999/05/18 15:55:28  fca
00008  * AliRoot sources
00009  *
00010  * Revision 1.2  1997/02/04 17:34:50  mclareni
00011  * Merge Winnt and 97a versions
00012  *
00013  * Revision 1.1.1.1.2.1  1997/01/21 11:29:47  mclareni
00014  * All mods for Winnt 96a on winnt branch
00015  *
00016  * Revision 1.1.1.1  1996/02/15 17:49:28  mclareni
00017  * Kernlib
00018  *
00019  */
00020 #include "kerngen/pilot.h"
00021 #include "kerngen/fortranc.h"
00022 
00023 /*>    ROUTINE VXINVB
00024   CERN PROGLIB#M434     VXINVB          .VERSION KERNFOR  4.42  951011
00025   ORIG. 10/07/95, JZ
00026 
00027       CALL VXINVB (IXV,N)
00028 
00029       byte inversion N words of IXV, in situ
00030 */
00031 
00032 #if defined(CERNLIB_QX_SC)
00033 void type_of_call vxinvb_(ixv, n)
00034 #endif
00035 #if defined(CERNLIB_QXNO_SC)
00036 void type_of_call vxinvb(ixv, n)
00037 #endif
00038 #if defined(CERNLIB_QXCAPT)
00039 void type_of_call VXINVB(ixv, n)
00040 #endif
00041       int  *ixv, *n;
00042 {
00043       int  limit, jloop;
00044       int  in;
00045 
00046       limit = *n;
00047 
00048 /*--          swop:   1 | 2 | 3 | 4
00049                 to:   4 | 3 | 2 | 1     */
00050 
00051       for (jloop = 0; jloop < limit; jloop++)
00052     { in = ixv[jloop];
00053       ixv[jloop] =
00054           ((in >> 24) & 0x000000ff) |
00055           ((in >>  8) & 0x0000ff00) |
00056           ((in <<  8) & 0x00ff0000) |
00057           ((in << 24) & 0xff000000);
00058         }
00059       return;
00060 }
00061 /*> END <----------------------------------------------------------*/
00062 #ifdef CERNLIB_TCGEN_VXINVB
00063 #undef CERNLIB_TCGEN_VXINVB
00064 #endif

Generated on Sat Mar 14 22:42:24 2009 for loon by doxygen 1.3.5