Differences From Artifact [7027d6b582]:
- File
configure.ac
— part of check-in
[a199313c53]
at
2014-05-05 01:42:17
on branch trunk
— atomic.h: Prefer GCC builtins over ASM
The compiler can optimize the builtins better. For example, if the
result is not used, the compiler can use an instruction that does not
fetch the result and thus might generate more efficient code. (user: js, size: 25607) [annotate] [blame] [check-ins using]
To Artifact [7cdaa767b1]:
- File configure.ac — part of check-in [2729104cf6] at 2014-05-05 02:13:37 on branch trunk — Check for and use __builtin_bswap{16,32,64} (user: js, size: 26069) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
790 791 792 793 794 795 796 797 798 799 800 801 802 803 | AC_CHECK_FUNCS([h_errno hstrerror]) ]) AS_IF([test x"$enable_sockets" != x"no" -a x"$enable_threads" != x"no"], [ AC_SUBST(OFHTTPCLIENTTESTS_M, "OFHTTPClientTests.m") ]) case "$host" in arm-apple-darwin*) have_processes="no" ;; *-*-mingw*) have_processes="yes" | > > > > > > > > > > > > > > > > > > > > > > | 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 | AC_CHECK_FUNCS([h_errno hstrerror]) ]) AS_IF([test x"$enable_sockets" != x"no" -a x"$enable_threads" != x"no"], [ AC_SUBST(OFHTTPCLIENTTESTS_M, "OFHTTPClientTests.m") ]) AC_DEFUN([CHECK_BUILTIN_BSWAP], [ AC_MSG_CHECKING(for __builtin_bswap$1) AC_TRY_LINK([ #include <stdint.h> #include <stdio.h> #include <inttypes.h> #include <errno.h> ], [ uint$1_t i = errno; printf("%" PRIu$1, __builtin_bswap$1(i)); ], [ AC_MSG_RESULT(yes) AC_DEFINE(OF_HAVE_BUILTIN_BSWAP$1, 1, [Whether we have __builtin_bswap$1]) ], [ AC_MSG_RESULT(no) ]) ]) CHECK_BUILTIN_BSWAP(16) CHECK_BUILTIN_BSWAP(32) CHECK_BUILTIN_BSWAP(64) case "$host" in arm-apple-darwin*) have_processes="no" ;; *-*-mingw*) have_processes="yes" |
︙ | ︙ |