[zeromq-dev] Development topics

Vitaly Mayatskikh v.mayatskih at gmail.com
Fri Feb 12 12:04:08 CET 2010


At Thu, 11 Feb 2010 18:03:23 +0100, Pavol Malosek wrote:
> 
> > Sorry, I was meaning to announce this but was waiting for the non-x86 
> > stuff
> > to be resolved. I haven't heard back from Palo Malosek on that so I guess
> > I'll just have to look at the autoconf stuff myself (ugh).
> 
> I see, I see:) sorry but I'm busy with other things...
> Follows the MIT lic patch to test rdtsc in configure, I did not test it so I 
> did not pushed it into the main repository.
> 
> malo
> 
> diff --git a/configure.in b/configure.in
> index d9da679..9327aab 100644
> --- a/configure.in
> +++ b/configure.in
> @@ -156,6 +156,21 @@ if test "x$sparc" = "xyes"; then
>      CPPFLAGS="$CPPFLAGS -mcpu=v9"
>  fi
> 
> +# Check if we have rdtsc
> +AC_MSG_CHECKING([wheter rdtsc is is supported])
> +AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
> +    [],
> +    [[
> +        __asm__ volatile ("rdtsc");
> +    ]])],
> +        [rdtsc=yes],
> +        [rdtsc=no])

What's the point of this check? It is entirely x86-specific and is
supported since first Pentiums.
-- 
wbr, Vitaly



More information about the zeromq-dev mailing list