1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../nasm/compile.patch.dietlibc
5 # Copyright (C) 2004 - 2016 The T2 SDE Project
6 # Copyright (C) 1998 - 2004 ROCK Linux Project
8 # More information can be found in the files COPYING and README.
10 # This patch file is dual-licensed. It is available under the license the
11 # patched project is licensed under, as long as it is an OpenSource license
12 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
13 # of the GNU General Public License as published by the Free Software
14 # Foundation; either version 2 of the License, or (at your option) any later
16 # --- T2-COPYRIGHT-NOTE-END ---
18 --- ./nasmlib.c.orig 2005-01-15 23:15:51.000000000 +0100
19 +++ ./nasmlib.c 2006-06-18 22:11:25.000000000 +0200
21 if (posn >= r->stepsize * LAYERSIZ(r))
22 return 0; /* Return 0 for undefined entries */
23 while (r->layers > 0) {
25 - l = ldiv(posn, r->stepsize);
26 - r = r->u.b.data[l.quot];
28 + r = r->u.b.data[ posn / r->stepsize ];
29 + posn = posn % r->stepsize;
31 return 0; /* Return 0 for undefined entries */
36 while (r->layers > 0) {
39 - l = ldiv(posn, r->stepsize);
40 - s = &r->u.b.data[l.quot];
41 + s = &r->u.b.data[ posn / r->stepsize ];
43 *s = real_raa_init(r->layers - 1);
46 + posn = posn % r->stepsize;
49 r->u.l.data[posn] = value;