[ruby-cvs:62016] naruse:r54854 (trunk): * string.c (search_nonascii): unroll and use ntz

naruse at ruby-lang.org naruse at ruby-lang.org
Sun May 1 00:39:02 JST 2016


naruse	2016-05-01 00:39:02 +0900 (Sun, 01 May 2016)

  New Revision: 54854

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

  Log:
    * string.c (search_nonascii): unroll and use ntz
    
    * configure.in (__builtin_ctz): check.
    
    * configure.in (__builtin_ctzll): check.
    
    * internal.h (rb_popcount32): defined for ntz_int32.
      it can use __builtin_popcount but this function is not used on
      GCC environment because it uses __builtin_ctz.
      When another function uses this, using __builtin_popcount
      should be re-considered.
    
    * internal.h (rb_popcount64): ditto.
    
    * internal.h (ntz_int32): defined for ntz_intptr.
    
    * internal.h (ntz_int64): defined for ntz_intptr.
    
    * internal.h (ntz_intptr): defined as ntz for uintptr_t.

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


More information about the ruby-cvs mailing list