Project

General

Profile

« Previous | Next » 

Revision cdef0bc8

Added by naruse (Yui NARUSE) about 9 years ago

  • string.c (count_utf8_lead_bytes_with_word): Use __builtin_popcount
    only if it can use SSE 4.2 POPCNT whose latency is 3 cycle.

  • internal.h (rb_popcount64): use __builtin_popcountll because now
    it is in fast path.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e