mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.7 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/dietlibc/pkg_patch/pkg_nasm.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- nasm-0.98.36/nasmlib.c~ Thu Feb 6 02:44:09 2003
  20. +++ nasm-0.98.36/nasmlib.c Sun Sep 7 23:23:29 2003
  21. @@ -372,10 +372,8 @@
  22. if (posn >= r->stepsize * LAYERSIZ(r))
  23. return 0; /* Return 0 for undefined entries */
  24. while (r->layers > 0) {
  25. - ldiv_t l;
  26. - l = ldiv (posn, r->stepsize);
  27. - r = r->u.b.data[l.quot];
  28. - posn = l.rem;
  29. + r = r->u.b.data[posn/r->stepsize];
  30. + posn = posn%r->stepsize;
  31. if (!r)
  32. return 0; /* Return 0 for undefined entries */
  33. }
  34. @@ -408,14 +406,12 @@
  35. result = r;
  36. while (r->layers > 0) {
  37. - ldiv_t l;
  38. struct RAA **s;
  39. - l = ldiv (posn, r->stepsize);
  40. - s = &r->u.b.data[l.quot];
  41. + s = &r->u.b.data[posn / r->stepsize];
  42. if (!*s)
  43. *s = real_raa_init (r->layers - 1);
  44. r = *s;
  45. - posn = l.rem;
  46. + posn = posn % r->stepsize;
  47. }
  48. r->u.l.data[posn] = value;