Changeset 179 for trunk/lib/lib_simd.h


Ignore:
Timestamp:
Jul 9, 2008, 12:17:19 PM (11 years ago)
Author:
lindanl
Message:

Templated SIMD Library - initial version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/lib_simd.h

    r90 r179  
    1717
    1818#if (defined(__i386) || defined(__x86_64))
     19#ifdef TEMPLATED_SIMD_LIB
     20#include "sse_simd_t.h"
     21#endif
     22#ifndef TEMPLATED_SIMD_LIB
    1923#include "sse_simd.h"
     24#endif
    2025#endif
    2126#ifdef _ARCH_PPC
     
    4449#endif
    4550#if BYTE_ORDER == LITTLE_ENDIAN
    46 #define sisd_sfl(blk, n) sisd_sll(blk, n)
    47 #define sisd_sbl(blk, n) sisd_srl(blk, n)
     51static inline SIMD_type sisd_sfl(SIMD_type blk, SIMD_type n) {
     52        return sisd_sll(blk, n);
     53}
     54//#define sisd_sbl(blk, n) sisd_srl(blk, n)
    4855#define sisd_sfli(blk, n) sisd_slli(blk, n)
    4956#define sisd_sbli(blk, n) sisd_srli(blk, n)
Note: See TracChangeset for help on using the changeset viewer.