]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MINICERN/packlib/kernlib/kerngen/ccgen/vxinvc.c
This commit was generated by cvs2svn to compensate for changes in r2,
[u/mrichter/AliRoot.git] / MINICERN / packlib / kernlib / kerngen / ccgen / vxinvc.c
1 /*
2  * $Id$
3  *
4  * $Log$
5  * Revision 1.2  1997/02/04 17:34:51  mclareni
6  * Merge Winnt and 97a versions
7  *
8  * Revision 1.1.1.1.2.1  1997/01/21 11:29:55  mclareni
9  * All mods for Winnt 96a on winnt branch
10  *
11  * Revision 1.1.1.1  1996/02/15 17:49:28  mclareni
12  * Kernlib
13  *
14  */
15 #include "kerngen/pilot.h"
16 #include "kerngen/fortranc.h"
17 /*>    ROUTINE VXINVC
18   CERN PROGLIB#M434     VXINVC          .VERSION KERNFOR  4.42  951011
19   ORIG. 10/07/95, JZ
20
21       CALL VXINVC (IV,IXV,N)
22
23       copy N words from IV to IXV with byte inversion 
24 */
25
26 #if defined(CERNLIB_QX_SC)
27 void type_of_call vxinvc_(iv, ixv, n)
28 #endif
29 #if defined(CERNLIB_QXNO_SC)
30 void type_of_call vxinvc(iv, ixv, n)
31 #endif
32 #if defined(CERNLIB_QXCAPT)
33 void type_of_call VXINVC(iv, ixv, n)
34 #endif
35       int  *iv, *ixv, *n;
36 {
37       int  limit, jloop;
38       int  in;
39
40       limit = *n;
41
42 /*--          swop:   1 | 2 | 3 | 4
43                 to:   4 | 3 | 2 | 1     */
44
45       for (jloop = 0; jloop < limit; jloop++)
46     { in = iv[jloop];
47       ixv[jloop] =
48           ((in >> 24) & 0x000000ff) |
49           ((in >>  8) & 0x0000ff00) |
50           ((in <<  8) & 0x00ff0000) |
51           ((in << 24) & 0xff000000);
52         }
53       return;
54 }
55 /*> END <----------------------------------------------------------*/
56 #ifdef CERNLIB_TCGEN_VXINVC
57 #undef CERNLIB_TCGEN_VXINVC
58 #endif