Changeset 1517


Ignore:
Timestamp:
Oct 5, 2011, 4:57:54 PM (8 years ago)
Author:
vla24
Message:

SymbolTable?: clean up and fix idisa library calls

Location:
trunk/lib/symtab
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/symtab/Makefile

    r1462 r1517  
    2323
    2424lib_idisa:obj_idisa
    25         ar -rs libsymtab.a *.o  # $(AFLAGS) $(PAPI)
     25        ar -rs libsymtab.a *.o    # $(AFLAGS) $(PAPI)
    2626
    2727obj:    $(SRCFILE)
     
    2929
    3030obj_idisa:$(SRCFILE)
    31         $(CC) $(INCLUDES_IDISA) -c $(SRCFILE) -DUSE_IDISA # $(AFLAGS) $(PAPI)
     31        $(CC) $(INCLUDES_IDISA) -c $(SRCFILE) -DUSE_IDISA   # $(AFLAGS) $(PAPI)
    3232
    3333
  • trunk/lib/symtab/library_conversion.h

    r1462 r1517  
    33
    44#ifdef USE_IDISA
     5#define USE_SSE2
    56#include <idisa.hpp>
    67#else
     
    2526{
    2627#ifdef USE_IDISA
    27     //FIXME: In splat new library, splat takes an extra immediate argument location
    28     //I am not sure what it means...
    2928    return mvmd<fw>::template splat<0>(v);
    3029#else
     
    5756{
    5857#ifdef USE_IDISA
    59     //FIXME: Pack in the old simd library uses _mm_packus_epi32 so I assume it is
    60     //using unsigned pack.
    61   return hsimd<fw>::packus(r1, r2);
     58  return hsimd<fw>::packl(r1, r2);
    6259#else
    6360  return simd<fw>::pack(r1, r2);
  • trunk/lib/symtab/pbgs_div_symbol_table.h

    r1391 r1517  
    4646
    4747    inline int Lookup_or_Insert_Name(char* name, int hashvalue, int L);
     48
     49    void Print_Symbol_Table_Distribution();
    4850
    4951private:
     
    135137        return (L+1)/2;
    136138}
     139
     140void PBGSDivSymbolTable::Print_Symbol_Table_Distribution()
     141{
     142    for (int i = 0; i < TOTAL_GROUPS; i++)
     143    {
     144        fprintf (stderr, "Group #%i\n", i );
     145        m_hashTable[i].Print_Symbol_Table_Distribution();
     146    }
     147}
    137148#endif // PBGS_DIV_SYMBOL_TABLE_H
    138149
  • trunk/lib/symtab/pbgs_identity_symbol_table.h

    r1391 r1517  
    237237    for (int i = 0; i < TOTAL_GROUPS; i++)
    238238    {
    239         fprintf (stderr, "Bucket #%i\n", i );
     239        fprintf (stderr, "Group #%i\n", i );
    240240        m_hashTable[i].Print_Symbol_Table_Distribution();
    241241    }
Note: See TracChangeset for help on using the changeset viewer.