[ruby-cvs:62057] naruse:r54894 (trunk): * string.c (count_utf8_lead_bytes_with_word): Use __builtin_popcount

naruse at ruby-lang.org naruse at ruby-lang.org
Tue May 3 22:14:30 JST 2016


naruse	2016-05-03 22:14:30 +0900 (Tue, 03 May 2016)

  New Revision: 54894

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54894

  Log:
    * 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.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
    trunk/internal.h
    trunk/string.c


More information about the ruby-cvs mailing list