History

20070227.0

Charles.Forsyth committed 19 years ago

Commit 467db651 parent 5fd86224 files · +12 −2Browse files

Unified · Split

4 files
  1. CHANGES +4 −0
  2. include/fcall.h +1 −1
  3. include/version.h +1 −1
  4. libmemdraw/draw.c +6 −0
CHANGES+4−0
@@ -1,3 +1,7 @@
1+20070227
2+ /include/fcall.h: ensure unsigned promotion to counter ansi sign-extending rules for GBIT64
3+20070220
4+ add 0x92 as chip ID for ether91c111.c
15 20070217
26 repair /appl/lib/libc.b and /appl/lib/libc0.b strncmp implementations (used only by c2l output) [inferno-os issue 9]
37 /emu/port/devip.c, get socket fd on reopen of ctl
include/fcall.h+1−1
@@ -64,7 +64,7 @@ struct Fcall · 63 unmodified lines
6464 #define GBIT8(p) ((p)[0])
6565 #define GBIT16(p) ((p)[0]|((p)[1]<<8))
6666 #define GBIT32(p) ((u32int)((p)[0]|((p)[1]<<8)|((p)[2]<<16)|((p)[3]<<24)))
67−#define GBIT64(p) ((vlong)((p)[0]|((p)[1]<<8)|((p)[2]<<16)|((p)[3]<<24)) |\
67+#define GBIT64(p) ((u32int)((p)[0]|((p)[1]<<8)|((p)[2]<<16)|((p)[3]<<24)) |\
6868 ((vlong)((p)[4]|((p)[5]<<8)|((p)[6]<<16)|((p)[7]<<24)) << 32))
6969
7070 #define PBIT8(p,v) (p)[0]=(v)
include/version.h+1−1
@@ -1 +1 @@
1−#define VERSION "Fourth Edition (20070217)"
1+#define VERSION "Fourth Edition (20070227)"
libmemdraw/draw.c+6−0
@@ -2494,6 +2494,7 @@ memfillcolor(Memimage *i, ulong val) · 2493 unmodified lines
24942494 {
24952495 ulong bits;
24962496 int d, y;
2497+ uchar p[4];
24972498
24982499 if(val == DNofill)
24992500 return;
@@ -2507,6 +2508,11 @@ memfillcolor(Memimage *i, ulong val) · 7 unmodified lines
25072508 default: /* 1, 2, 4, 8, 16, 32 */
25082509 for(d=i->depth; d<32; d*=2)
25092510 bits = (bits << d) | bits;
2511+ p[0] = bits; /* make little endian */
2512+ p[1] = bits>>8;
2513+ p[2] = bits>>16;
2514+ p[3] = bits>>24;
2515+ bits = *(u32int*)p;
25102516 memsetl(wordaddr(i, i->r.min), bits, i->width*Dy(i->r));
25112517 break;
25122518 }