8 saw 1.1 *
9 *
10 integer*4 function jishft(a1,a2)
11 integer*4 a1,a2
12 if(a2.lt.0) then
13 jishft = rshift(a1,-a2)
14 else
15 jishft = lshift(a1,a2)
16 endif
17 return
18 end
19
20 integer*4 function jiand(a1,a2)
21 integer*4 a1,a2
22 jiand = and(a1,a2)
23 return
24 end
25
26 integer*4 function jibset(a1,a2)
27 integer*4 a1,a2
28 jibset = or(a1,lshift(1,a2))
29 saw 1.1 return
30 end
31
32 logical*4 function bjtest(a1,a2)
33 integer*4 a1,a2
34 bjtest = (and(a1,lshift(1,a2)).ne.0)
35 return
36 end
37
|