[cairo] Fwd: Qt Vs Cairo performance comparison

Behdad Esfahbod behdad at behdad.org
Wed Oct 25 06:05:09 PDT 2006


On Wed, 2006-10-25 at 06:55 -0400, Kalle Vahlman wrote:
> +dnl
> ===========================================================================
> +dnl Check if we want to use less portable, but faster
> double-to-integer conversion
> +
> +AC_ARG_ENABLE(fast-double-conversion,
> +  AS_HELP_STRING([--enable-fast-double-conversion],
> +                [Use the fast but less portable Sree Kotay method for
> converting double values to fixed]),
> +  [use_fast_double_conversion=$enableval],
> [use_fast_double_conversion=no])
> +
> +AM_CONDITIONAL(CAIRO_USE_FAST_DOUBLE_CONVERSION, test "x
> $use_fast_double_conversion" = "xyes")
> +if test "x$use_fast_double_conversion" = "xyes"; then
> +  AC_DEFINE(CAIRO_USE_FAST_DOUBLE_CONVERSION, 1, [If defined, uses
> faster method for converting doubles to fixed])
> +fi
> + 

There shouldn't be a --enable option for it.  Instead, it should run
code in configure to detect whether the fast conversion works.

-- 
behdad
http://behdad.org/

"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
        -- Dan Bern, "New American Language"



More information about the cairo mailing list