Changeset 530 for trunk/lib


Ignore:
Timestamp:
Jul 22, 2010, 1:38:23 PM (9 years ago)
Author:
cameron
Message:

Replace cfzl with cbzl in count_backward_zeroes (32-bit)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/lib_simd.h

    r526 r530  
    134134#endif
    135135#if LONG_BIT < 64
    136   if (v.elems[3] != 0) return cfzl(v.elems[3]);
    137   else if (v.elems[2] != 0) return LONG_BIT + cfzl(v.elems[2]);
    138   else if (v.elems[1] != 0) return 2*LONG_BIT + cfzl(v.elems[1]);
    139   else if (v.elems[0] != 0) return 3*LONG_BIT + cfzl(v.elems[0]);
     136  if (v.elems[3] != 0) return cbzl(v.elems[3]);
     137  else if (v.elems[2] != 0) return LONG_BIT + cbzl(v.elems[2]);
     138  else if (v.elems[1] != 0) return 2*LONG_BIT + cbzl(v.elems[1]);
     139  else if (v.elems[0] != 0) return 3*LONG_BIT + cbzl(v.elems[0]);
    140140#endif
    141141  else return 8*sizeof(SIMD_type);
Note: See TracChangeset for help on using the changeset viewer.