Ignore:
Timestamp:
Jul 27, 2011, 4:05:14 PM (8 years ago)
Author:
vla24
Message:

Integrated symbol table with xmlwf. There are various implementations for the symbol table, please read /proto/SymbolTable/README_SymbolTable for more information.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/sse_simd_t.h

    r1182 r1228  
    919919
    920920
    921 static inline int bitblock_has_bit(SIMD_type v) {
    922   return !simd_all_true<8>(simd<8>::eq(v, simd<8>::constant<0>()));
    923 }
    924 
    925 static inline int bitblock_bit_count(SIMD_type v) {
    926   int bit_count = 0;
    927   SIMD_type cts_2 = simd<2>::add<l,h>(v, v);
    928   SIMD_type cts_4 = simd<4>::add<l,h>(cts_2, cts_2);
    929   SIMD_type cts_8 = simd<8>::add<l,h>(cts_4, cts_4);
    930   SIMD_type cts_64 = _mm_sad_epu8(cts_8, simd<8>::constant<0>());
    931   /* SIMD_type cts_128 = simd<a28>::add<l,h>(cts_64, cts_64) */;
    932   SIMD_type cts_128 = simd<64>::add(cts_64, simd<128>::srli<64>(cts_64));
    933   return (int) sisd_to_int(cts_128);
    934 }
    935 
    936 #endif
    937 
     921//static inline int bitblock_has_bit(SIMD_type v) {
     922//  return !simd_all_true<8>(simd<8>::eq(v, simd<8>::constant<0>()));
     923//}
     924
     925//static inline int bitblock_bit_count(SIMD_type v) {
     926//  int bit_count = 0;
     927//  SIMD_type cts_2 = simd<2>::add<l,h>(v, v);
     928//  SIMD_type cts_4 = simd<4>::add<l,h>(cts_2, cts_2);
     929//  SIMD_type cts_8 = simd<8>::add<l,h>(cts_4, cts_4);
     930//  SIMD_type cts_64 = _mm_sad_epu8(cts_8, simd<8>::constant<0>());
     931//  /* SIMD_type cts_128 = simd<a28>::add<l,h>(cts_64, cts_64) */;
     932//  SIMD_type cts_128 = simd<64>::add(cts_64, simd<128>::srli<64>(cts_64));
     933//  return (int) sisd_to_int(cts_128);
     934//}
     935
     936#endif
     937
Note: See TracChangeset for help on using the changeset viewer.