Changeset 1516 for trunk


Ignore:
Timestamp:
Oct 4, 2011, 6:20:43 PM (8 years ago)
Author:
ksherdy
Message:

Added top-level header as a placeholder for 'common' bitblock methods.

Location:
trunk/lib
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bitblock128.hpp

    r1503 r1516  
    11/*
    2     bitblock128 -
     2    bitblock128 - 128 bit block size - Specific 128 bit implementations.
    33
    44    Idealized SIMD Operations with SSE versions
     
    1313#define BITBLOCK128_HPP_
    1414
    15 //TODO - Remove include and typedef __m128i
    16 #include <emmintrin.h>
    17 typedef __m128i BitBlock;
    18 
    19 #define BLOCKSIZE 128
    20 #include "idisa.hpp"
    21 #include <stdint.h>
    22 
    23 // Integer Conversion
    24 #define sisd_from_int(n) _mm_cvtsi32_si128(n)
    25 #define sisd_to_int(x) _mm_cvtsi128_si32(x)
    26 
    2715#endif /* BITBLOCK128_HPP_ */
  • trunk/lib/bitblock256.hpp

    r1503 r1516  
    11/*
    2     bitblock256 -
     2    bitblock256 - 256 bit block size - Specific 256 bit implementations.
    33
    44    Idealized SIMD Operations with SSE versions
     
    1313#define BITBLOCK256_HPP_
    1414
    15 // TODO - Remove include and typedef __m256
    16 #include <immintrin.h>
    17 typedef __m256 bitblock256_t;
    18 
    19 #define BLOCKSIZE 256
    20 #include "idisa.hpp"
    21 #include <stdint.h>
    22 
    23 // Integer Conversion
    24 #define sisd_from_int(n) _mm256_castsi256_ps(_mm256_castsi128_si256(_mm_cvtsi32_si128(n)))
    25 #define sisd_to_int(x)  _mm_extract_epi32(_mm256_castsi256_si128((__m256i) x), 0)
    26 
    27 
    28 
    2915#endif /* BITBLOCK256_HPP_ */
Note: See TracChangeset for help on using the changeset viewer.