hplip-no-asm.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. diff -up hplip-3.9.8/ip/xfax.c.no-asm hplip-3.9.8/ip/xfax.c
  2. --- hplip-3.9.8/ip/xfax.c.no-asm 2009-08-04 22:37:28.000000000 +0100
  3. +++ hplip-3.9.8/ip/xfax.c 2009-08-25 14:44:04.502202418 +0100
  4. @@ -1680,19 +1680,6 @@ static BOOL bits_flush_to_eol (
  5. & ((1u<<n_bits) - 1u); \
  6. }
  7. -#if 0
  8. -
  9. -#define BITS_LOAD(g, num_bits, par_result) { \
  10. - int n_bits = (int)(num_bits); \
  11. - \
  12. - par_result = g->gb_cache; \
  13. - \
  14. - asm ("extract %1,%2,%0" \
  15. - : "=d" (par_result) \
  16. - : "dI" (g->gb_cache_cnt - n_bits), "dI" (n_bits), "0" (par_result)); \
  17. -}
  18. -
  19. -#endif
  20. diff -up hplip-3.9.8/scan/sane/common.h.no-asm hplip-3.9.8/scan/sane/common.h
  21. --- hplip-3.9.8/scan/sane/common.h.no-asm 2009-08-25 16:35:14.577203106 +0100
  22. +++ hplip-3.9.8/scan/sane/common.h 2009-08-25 16:35:29.948216281 +0100
  23. @@ -53,8 +53,6 @@
  24. #define BACKEND_NAME hpaio
  25. -#define BREAKPOINT __asm( "int3" )
  26. -
  27. #define OK 1
  28. #define ERROR 0
  29. #define MAX_LIST_SIZE 32
  30. diff -up hplip-3.9.8/scan/sane/hpaio.c.no-asm hplip-3.9.8/scan/sane/hpaio.c