/[Apache-SVN]
ViewVC logotype

Revision 1508170


Jump to revision: Previous Next
Author: danielsh
Date: Mon Jul 29 18:35:25 2013 UTC (10 years, 9 months ago)
Changed paths: 3
Log Message:
Follow-up to r1507366: svn_hash_gets: compute the length of string literal
keys (common case) at compile-time, without multiply-evaluating dynamically-
computed keys.

Review by: philip
           breser

* build/ac-macros/svn-macros.m4
  (SVN_CHECK_FOR_DUNDER_BUILTINS): New macro.

* configure.ac:
    Call SVN_CHECK_FOR_DUNDER_BUILTINS() and set -D SVN_HAS_DUNDER_BUILTINS.

* subversion/include/svn_hash.h
  (svn_hash_gets): Use __builtin_choose_expr() and __builtin_constant_p(),
    when available.


Changed paths

Path Details
Directorysubversion/trunk/build/ac-macros/svn-macros.m4 modified , text changed
Directorysubversion/trunk/configure.ac modified , text changed
Directorysubversion/trunk/subversion/include/svn_hash.h modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26