Changeset 90


Ignore:
Timestamp:
Apr 2, 2008, 6:31:12 PM (11 years ago)
Author:
cameron
Message:

Temp. workaround for MSVC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/lib_simd.h

    r87 r90  
    7171  if (v.elems[0] != 0) return cfzl(v.elems[0]);
    7272  else if (v.elems[1] != 0) return LONG_BIT + cfzl(v.elems[1]);
     73#ifdef _MSC_VER
     74  else if (v.elems[2] != 0) return 2*LONG_BIT + cfzl(v.elems[2]);
     75  else if (v.elems[3] != 0) return 3*LONG_BIT + cfzl(v.elems[3]);
     76#endif
     77#ifndef _MSC_VER
    7378#if LONG_BIT < 64
    7479  else if (v.elems[2] != 0) return 2*LONG_BIT + cfzl(v.elems[2]);
    7580  else if (v.elems[3] != 0) return 3*LONG_BIT + cfzl(v.elems[3]);
     81#endif
    7682#endif
    7783  else return 8*sizeof(SIMD_type);
Note: See TracChangeset for help on using the changeset viewer.