Changeset 1815


Ignore:
Timestamp:
Dec 28, 2011, 5:57:20 PM (8 years ago)
Author:
ksherdy
Message:

Updated union type declaration/defintion.

Location:
trunk/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bitblock.hpp

    r1808 r1815  
    2323template<class T> void print_register(const char * var_name, T v);
    2424
     25/*  BitBlock union type */
     26union ubitblock;
     27
    2528/*  Default BLOCK_SIZE is 128, compatible with SSE, Altivec, SPU */
    2629#if (BLOCK_SIZE == 128)
     
    4043template<> IDISA_ALWAYS_INLINE uint32_t count_reverse_zeroes<unsigned long long>(unsigned long long s) {return cbzll(s);}
    4144
     45IDISA_ALWAYS_INLINE bool all_true(uint64_t r);
     46
    4247template <class T> void print_register(const char * var_name, T v);
    4348template <class T>
  • trunk/lib/bitblock128.hpp

    r1622 r1815  
    1515#include "builtins.hpp"
    1616
    17 union ubitblock128 {
     17union ubitblock {
    1818        bitblock128_t _128;
    1919        uint64_t _64[sizeof(bitblock128_t)/sizeof(uint64_t)];
     
    7777IDISA_ALWAYS_INLINE bitblock128_t convert(uint64_t s)
    7878{
    79         ubitblock128 b = {b._128 = simd128<128>::constant<0>()}; // = {0};
     79        ubitblock b = {b._128 = simd128<128>::constant<0>()}; // = {0};
    8080        b._64[0] = s;
    8181        return b._128;
  • trunk/lib/bitblock256.hpp

    r1555 r1815  
    1717#include "builtins.hpp"
    1818
    19 union ubitblock256 {
     19union ubitblock {
    2020        bitblock128_t _256;
    2121        bitblock128_t _128[sizeof(bitblock256_t)/sizeof(bitblock128_t)];
Note: See TracChangeset for help on using the changeset viewer.