sbc_mmx.patch 998 B

123456789101112131415161718192021222324
  1. on x86 and x86_64 gcc 4.7 complains
  2. sbc/sbc_primitives_mmx.c: In function 'sbc_calc_scalefactors_mmx':
  3. sbc/sbc_primitives_mmx.c:294:4: warning: asm operand 2 probably doesn't match constraints [enabled by default]
  4. sbc/sbc_primitives_mmx.c:294:4: error: impossible constraint in 'asm'
  5. This patch is taken from https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/911871
  6. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  7. Upstream-Status: Pending
  8. Index: bluez-4.98/sbc/sbc_primitives_mmx.c
  9. ===================================================================
  10. --- bluez-4.98.orig/sbc/sbc_primitives_mmx.c 2011-12-21 14:53:54.000000000 -0800
  11. +++ bluez-4.98/sbc/sbc_primitives_mmx.c 2012-02-24 10:07:03.422073800 -0800
  12. @@ -318,7 +318,7 @@
  13. "movl %k0, 4(%3)\n"
  14. : "+r" (blk)
  15. : "r" (&sb_sample_f[0][ch][sb]),
  16. - "i" ((char *) &sb_sample_f[1][0][0] -
  17. + "r" ((char *) &sb_sample_f[1][0][0] -
  18. (char *) &sb_sample_f[0][0][0]),
  19. "r" (&scale_factor[ch][sb]),
  20. "r" (&consts),