Ignore:
Timestamp:
Sep 30, 2013, 4:29:47 PM (6 years ago)
Author:
linmengl
Message:

fix some problem according to svn history. fix cycle countings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/idisa_cpp/idisa_ssse3.cpp

    r3525 r3526  
    15831583template <> template <FieldType<2>::T val> IDISA_ALWAYS_INLINE bitblock128_t simd128<2>::constant()
    15841584{
    1585         return ((val < 0) ? simd128<(4)>::constant<((val<<2)|(val^(-4)))>() : simd128<(4)>::constant<((val<<2)|val)>());
     1585        return simd128<(4)>::constant<((val<<2)|(val&(3)))>();
    15861586}
    15871587
     
    15891589template <> template <FieldType<4>::T val> IDISA_ALWAYS_INLINE bitblock128_t simd128<4>::constant()
    15901590{
    1591         return ((val < 0) ? simd128<(8)>::constant<((val<<4)|(val^(-16)))>() : simd128<(8)>::constant<((val<<4)|val)>());
     1591        return simd128<(8)>::constant<((val<<4)|(val&(15)))>();
    15921592}
    15931593
Note: See TracChangeset for help on using the changeset viewer.