Changeset 317


Ignore:
Timestamp:
Oct 5, 2009, 8:33:36 AM (9 years ago)
Author:
ksherdy
Message:

Explicit template specialization cannot have a storage class. Removed static storage class to compile under gcc 4.3.3.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/sse_simd_t.h

    r191 r317  
    423423static inline int simd_all_true(SIMD_type r);
    424424template<>
    425 static inline int simd_all_true<8>(SIMD_type r) {
     425inline int simd_all_true<8>(SIMD_type r) {
    426426        return _mm_movemask_epi8(r) == 0xFFFF;
    427427}
     
    432432static inline int simd_any_true(SIMD_type r);
    433433template<>
    434 static inline int simd_any_true<8>(SIMD_type r) {
     434inline int simd_any_true<8>(SIMD_type r) {
    435435        return _mm_movemask_epi8(r) != 0;
    436436}
     
    441441static inline int simd_any_sign_bit(SIMD_type r);
    442442template<>
    443 static inline int simd_any_sign_bit<8>(SIMD_type r) {
     443inline int simd_any_sign_bit<8>(SIMD_type r) {
    444444        return _mm_movemask_epi8(r) != 0;
    445445}
  • trunk/src/bitlex.c

    r273 r317  
    162162
    163163template <>
    164 static inline void WS_Control_Blocks<ASCII>(BitBlock bit[], BitBlock& WS, BitBlock& Control) {
     164inline void WS_Control_Blocks<ASCII>(BitBlock bit[], BitBlock& WS, BitBlock& Control) {
    165165        BitBlock temp1 = simd_or(bit[0], bit[1]);
    166166        BitBlock temp2 = simd_or(temp1, bit[2]);
     
    193193
    194194template <>
    195 static inline void WS_Control_Blocks<EBCDIC>(BitBlock bit[], BitBlock& WS, BitBlock& Control) {
     195inline void WS_Control_Blocks<EBCDIC>(BitBlock bit[], BitBlock& WS, BitBlock& Control) {
    196196        BitBlock temp1 = simd_or(bit[0], bit[1]);
    197197        BitBlock temp2 = simd_or(bit[2], bit[3]);
     
    297297
    298298template <>
    299 static inline void ComputeLexicalItemBlocks<ASCII>(BitBlock bit[], BitBlock LexItem[]) {
     299inline void ComputeLexicalItemBlocks<ASCII>(BitBlock bit[], BitBlock LexItem[]) {
    300300  BitBlock temp1 = simd_or(bit[0], bit[1]);
    301301  BitBlock temp2 = simd_and(bit[2], bit[3]);
     
    391391
    392392template <>
    393 static inline void ComputeLexicalItemBlocks<EBCDIC>(BitBlock bit[], BitBlock LexItem[]) {
     393inline void ComputeLexicalItemBlocks<EBCDIC>(BitBlock bit[], BitBlock LexItem[]) {
    394394          BitBlock temp1 = simd_andc(bit[1], bit[0]);
    395395  BitBlock temp2 = simd_or(bit[2], bit[3]);
Note: See TracChangeset for help on using the changeset viewer.