mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-18 15:16:17 +00:00
remove LT_SMP_CACHE_BYTES
This is used by the library, not here. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Jari Sundell
parent
c803970628
commit
1a79eec876
@@ -72,7 +72,6 @@ LIBS="$PTHREAD_LIBS $CURSES_LIB $CURSES_LIBS $DEPENDENCIES_LIBS $LIBS"
|
|||||||
CFLAGS="$CFLAGS $PTHREAD_CFLAGS $DEPENDENCIES_CFLAGS $CURSES_CFLAGS"
|
CFLAGS="$CFLAGS $PTHREAD_CFLAGS $DEPENDENCIES_CFLAGS $CURSES_CFLAGS"
|
||||||
CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS $DEPENDENCIES_CFLAGS $CURSES_CFLAGS"
|
CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS $DEPENDENCIES_CFLAGS $CURSES_CFLAGS"
|
||||||
|
|
||||||
TORRENT_CHECK_CACHELINE()
|
|
||||||
TORRENT_CHECK_POPCOUNT()
|
TORRENT_CHECK_POPCOUNT()
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
|
|||||||
@@ -156,26 +156,6 @@ AC_DEFUN([TORRENT_CHECK_POPCOUNT], [
|
|||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([TORRENT_CHECK_CACHELINE], [
|
|
||||||
AC_MSG_CHECKING(for cacheline)
|
|
||||||
|
|
||||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <linux/cache.h>
|
|
||||||
void* vptr __cacheline_aligned;
|
|
||||||
void f() { posix_memalign(&vptr, SMP_CACHE_BYTES, 42); }
|
|
||||||
])],
|
|
||||||
[
|
|
||||||
AC_MSG_RESULT(found builtin)
|
|
||||||
dnl Need to fix this so that it uses the stuff defined by the system.
|
|
||||||
|
|
||||||
AC_DEFINE(LT_SMP_CACHE_BYTES, 128, Largest L1 cache size we know of should work on all archs.)
|
|
||||||
], [
|
|
||||||
AC_MSG_RESULT(using default 128 bytes)
|
|
||||||
AC_DEFINE(LT_SMP_CACHE_BYTES, 128, Largest L1 cache size we know of should work on all archs.)
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([TORRENT_CHECK_ALIGNED], [
|
AC_DEFUN([TORRENT_CHECK_ALIGNED], [
|
||||||
AC_MSG_CHECKING(the byte alignment)
|
AC_MSG_CHECKING(the byte alignment)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user