Changeset 948 for trunk/lib


Ignore:
Timestamp:
Mar 16, 2011, 11:00:06 AM (8 years ago)
Author:
cameron
Message:

Parameterize by sizeof(SIMD_type)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/lib_simd.h

    r742 r948  
    221221
    222222static void print_bit_block(char * var_name, SIMD_type v) {
    223   union {SIMD_type vec; unsigned char elems[8];} x;
     223  union {SIMD_type vec; unsigned char elems[sizeof(SIMD_type)];} x;
    224224  x.vec = v;
    225225  unsigned char c;
     
    257257/* Prints the SIMD register representation of a SIMD value. */
    258258static void print_simd_register(const char * var_name, SIMD_type v) {
    259   union {SIMD_type vec; unsigned char elems[8];} x;
     259  union {SIMD_type vec; unsigned char elems[sizeof(SIMD_type)];} x;
    260260  x.vec = v;
    261261  unsigned char c;
Note: See TracChangeset for help on using the changeset viewer.