Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 273405 | Differences between
and this patch

Collapse All | Expand All

(-)gnusound-0.7.5.orig/configure.ac (-1 / +1 lines)
Lines 36-42 Link Here
36
dnl System type
36
dnl System type
37
AC_CANONICAL_HOST
37
AC_CANONICAL_HOST
38
case $host_cpu in
38
case $host_cpu in
39
i686|x86|x86_64|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*)
39
i686|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*)
40
AC_DEFINE(HAVE_ARCH_X86,,[Whether this computer has an x86 CPU])
40
AC_DEFINE(HAVE_ARCH_X86,,[Whether this computer has an x86 CPU])
41
;;
41
;;
42
esac
42
esac
(-)gnusound-0.7.5.orig/src/defines.h (-1 / +1 lines)
Lines 24-30 Link Here
24
/* #undef SIZEOF_SIZE_T */
24
/* #undef SIZEOF_SIZE_T */
25
25
26
/* Whether this computer has an x86 CPU */
26
/* Whether this computer has an x86 CPU */
27
#define HAVE_ARCH_X86 
27
/* #undef HAVE_ARCH_X86 */
28
28
29
/* The number of CPUs in this machine */ 
29
/* The number of CPUs in this machine */ 
30
/* #undef CPU_COUNT */
30
/* #undef CPU_COUNT */
(-)gnusound-0.7.5.orig/src/sample.c (+4 lines)
Lines 616-621 Link Here
616
    
616
    
617
    cpu_caps = arbiter_get_cpu_caps();
617
    cpu_caps = arbiter_get_cpu_caps();
618
618
619
#ifdef HAVE_ARCH_X86
619
#if USE_MMX_MINMAX == 3
620
#if USE_MMX_MINMAX == 3
620
    DEBUG("using static 3DNow! minmax\n");
621
    DEBUG("using static 3DNow! minmax\n");
621
#elif USE_MMX_MINMAX == 2
622
#elif USE_MMX_MINMAX == 2
Lines 641-646 Link Here
641
#else
642
#else
642
    DEBUG("Using plain C minmax\n");
643
    DEBUG("Using plain C minmax\n");
643
#endif /* USE_MMX_MINMAX */
644
#endif /* USE_MMX_MINMAX */
645
#else
646
    DEBUG("Using plain C minmax\n");
647
#endif
644
648
645
    return 0;
649
    return 0;
646
}
650
}
(-)gnusound-0.7.5.orig/src/sample.h (+9 lines)
Lines 25-30 Link Here
25
#include <config.h>
25
#include <config.h>
26
#include <audiofile.h>
26
#include <audiofile.h>
27
27
28
#ifdef HAVE_ARCH_X86
28
#if USE_MMX_MINMAX == 2
29
#if USE_MMX_MINMAX == 2
29
#define PEAK_MIN_FUNC min_int8_mmx2
30
#define PEAK_MIN_FUNC min_int8_mmx2
30
#define PEAK_MAX_FUNC max_int8_mmx2
31
#define PEAK_MAX_FUNC max_int8_mmx2
Lines 47-52 Link Here
47
#define MIN16_FUNC peak_funcs.min16_func
48
#define MIN16_FUNC peak_funcs.min16_func
48
#define MAX16_FUNC peak_funcs.max16_func
49
#define MAX16_FUNC peak_funcs.max16_func
49
#endif
50
#endif
51
#else
52
#define PEAK_MIN_FUNC peak_funcs.peak_min_func
53
#define PEAK_MAX_FUNC peak_funcs.peak_max_func
54
#define MIN8_FUNC peak_funcs.min8_func
55
#define MAX8_FUNC peak_funcs.max8_func
56
#define MIN16_FUNC peak_funcs.min16_func
57
#define MAX16_FUNC peak_funcs.max16_func
58
#endif
50
59
51
struct peak_func_table {
60
struct peak_func_table {
52
    graph_bits_unit_t (*peak_min_func)(const peak_unit_t *a, int count);
61
    graph_bits_unit_t (*peak_min_func)(const peak_unit_t *a, int count);

Return to bug 273405