mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
build: Use __builtin_popcount() if available.
This commit is contained in:
@@ -17,3 +17,13 @@ AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void) { return __sync_sub_and_fetch((in
|
||||
[1],
|
||||
[Define to 1 if you have __sync_sub_and_fetch.])],
|
||||
[AC_MSG_RESULT([no])])])
|
||||
|
||||
dnl VKD3D_CHECK_BUILTIN_POPCOUNT
|
||||
AC_DEFUN([VKD3D_CHECK_BUILTIN_POPCOUNT],
|
||||
[AC_MSG_CHECKING([for __builtin_popcount])
|
||||
AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void) { return __builtin_popcount(0); }])],
|
||||
[AC_MSG_RESULT([yes])
|
||||
AC_DEFINE([HAVE_BUILTIN_POPCOUNT],
|
||||
[1],
|
||||
[Define to 1 if you have __builtin_popcount.])],
|
||||
[AC_MSG_RESULT([no])])])
|
Reference in New Issue
Block a user