Line | |
---|

1 | // KERNEL kernelName LCURLY funcDef (optFuncDef)? RCURLY TERMINATOR?; |
---|

2 | |
---|

3 | kernel KernelName |
---|

4 | { |
---|

5 | init |
---|

6 | { |
---|

7 | |
---|

8 | } |
---|

9 | |
---|

10 | function void do_block() |
---|

11 | { |
---|

12 | |
---|

13 | BitBlock a; |
---|

14 | BitBlock b; |
---|

15 | BitBlock c; |
---|

16 | BitBlock k; |
---|

17 | BitBlock r; |
---|

18 | |
---|

19 | /* |
---|

20 | r = simd.add(abs); |
---|

21 | r = simd.neg(a); |
---|

22 | r = simd.add_hl(a); |
---|

23 | r = simd.xor_hl(a); |
---|

24 | r = simd.slli(k); |
---|

25 | r = simd.srli(k); |
---|

26 | r = simd.srai(k); |
---|

27 | r = simd.popcount(a); |
---|

28 | r = simd.ctz(a); |
---|

29 | */ |
---|

30 | |
---|

31 | r = simd.not<1>(a); |
---|

32 | r = simd.ifh<16>(a, b, c); |
---|

33 | |
---|

34 | r = hsimd.add_hl<2>(a); |
---|

35 | // r = simd.constant<2>(3); |
---|

36 | |
---|

37 | r = simd.add<1>(a,b); |
---|

38 | r = simd.sub<2>(a,b); |
---|

39 | r = simd.mul<4>(a,b); |
---|

40 | r = simd.eq<8>(a,b); |
---|

41 | r = simd.gt<16>(a,b); |
---|

42 | r = simd.ugt<32>(a,b); |
---|

43 | r = simd.lt<64>(a,b); |
---|

44 | r = simd.ult<128>(a,b); |
---|

45 | r = simd.max<256>(a,b); |
---|

46 | r = simd.umax<1>(a,b); |
---|

47 | r = simd.min<2>(a,b); |
---|

48 | r = simd.umin<4>(a,b); |
---|

49 | r = simd.sll<8>(a,b); |
---|

50 | r = simd.srl<16>(a,b); |
---|

51 | r = simd.sra<32>(a,b); |
---|

52 | |
---|

53 | //r = simd.if<128>(a,b,c); |
---|

54 | |
---|

55 | } |
---|

56 | |
---|

57 | function void do_final_block() |
---|

58 | { |
---|

59 | |
---|

60 | |
---|

61 | } |
---|

62 | |
---|

63 | CarryDeclare(carry_set_0, 0, 0); |
---|

64 | }; |
---|

**Note:** See

TracBrowser
for help on using the repository browser.