Changeset 3939 for trunk/lib_ir/s2p.h


Ignore:
Timestamp:
Jul 31, 2014, 8:41:10 PM (5 years ago)
Author:
linmengl
Message:

test out PEXT with s2p_ideal, put down results

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib_ir/s2p.h

    r3933 r3939  
    55
    66extern "C" {
    7   //void s2p_ideal(BitBlock s0, BitBlock s1, BitBlock s2, BitBlock s3, BitBlock s4, BitBlock s5, BitBlock s6, BitBlock s7, BitBlock *p0, BitBlock *p1, BitBlock *p2, BitBlock *p3, BitBlock *p4, BitBlock *p5, BitBlock *p6, BitBlock *p7);
    87
    98  BitBlock packh_16(BitBlock a, BitBlock b);
     
    1615  BitBlock packl_4(BitBlock a, BitBlock b);
    1716
     17  BitBlock packh_2(BitBlock a, BitBlock b);
     18  BitBlock packl_2(BitBlock a, BitBlock b);
     19
    1820  BitBlock ifh_1(BitBlock a, BitBlock b, BitBlock c);
    1921  BitBlock srli_16(BitBlock a, BitBlock shift_mask);
     
    2325
    2426  void s2p_bytepack_ir(BitBlock s0, BitBlock s1, BitBlock s2, BitBlock s3, BitBlock s4, BitBlock s5, BitBlock s6, BitBlock s7, BitBlock* p0, BitBlock* p1, BitBlock* p2, BitBlock* p3, BitBlock* p4, BitBlock* p5, BitBlock* p6, BitBlock* p7);
     27
     28  void s2p_ideal_ir(BitBlock s0, BitBlock s1, BitBlock s2, BitBlock s3, BitBlock s4, BitBlock s5, BitBlock s6, BitBlock s7, BitBlock *p0, BitBlock *p1, BitBlock *p2, BitBlock *p3, BitBlock *p4, BitBlock *p5, BitBlock *p6, BitBlock *p7);
    2529
    2630  BitBlock const16_1();
     
    3539//S2P_ALGORITHM: s2p_bytepack_inline, written in pure IR in order to use
    3640//immediate constants in shifting.
    37 #define S2P_ALGORITHM s2p_bytepack_inline
     41//s2p_ideal: use 3 stage packh2,4,8
     42#define S2P_ALGORITHM s2p_ideal
     43
     44#define s2p_ideal(s0, s1, s2, s3, s4, s5, s6, s7, p0, p1, p2, p3, p4, p5, p6, p7) \
     45  s2p_ideal_ir(s0, s1, s2, s3, s4, s5, s6, s7, &p0, &p1, &p2, &p3, &p4, &p5, &p6, &p7)
    3846
    3947#define s2p_bytepack_inline(s0, s1, s2, s3, s4, s5, s6, s7, p0, p1, p2, p3, p4, p5, p6, p7) \
Note: See TracChangeset for help on using the changeset viewer.