Changeset 341 for trunk


Ignore:
Timestamp:
Dec 2, 2009, 7:27:16 PM (10 years ago)
Author:
ksherdy
Message:

Use 'static inline' to keep simd library functions private to one translation unit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/sse_simd_t.h

    r338 r341  
    6363typedef __m128i SIMD_type;
    6464
    65 void print_bit_block(const char * var_name, SIMD_type v);
     65static inline void print_bit_block(const char * var_name, SIMD_type v);
    6666
    6767/*------------------------------------------------------------*/
     
    362362
    363363template<>
    364 SIMD_type simd<4>::add(SIMD_type r1, SIMD_type r2) {
     364inline SIMD_type simd<4>::add(SIMD_type r1, SIMD_type r2) {
    365365        return simd_if(simd<8>::himask(),
    366366                       simd<8>::add(r1,simd_and(r2,simd<8>::himask())),
Note: See TracChangeset for help on using the changeset viewer.