]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/tree-vect-generic.c
Add inline functions for various bitwise operations.
[thirdparty/gcc.git] / gcc / tree-vect-generic.c
index 9f0ec656bad1afeed12bd14683814f54c251a1b5..5d4273fcd0eb7ae6781cdc9a321a74d774b11b8e 100644 (file)
@@ -494,7 +494,7 @@ expand_vector_divmod (gimple_stmt_iterator *gsi, tree type, tree op0,
              || (!has_vector_shift && pre_shift != -1))
            {
              if (has_vector_shift)
-               pre_shift = floor_log2 (d & -d);
+               pre_shift = ctz_or_zero (d);
              else if (pre_shift == -1)
                {
                  unsigned int j;