[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Talarm() problem



In <9408150837.AA15092@issan.informatik.uni-dortmund.de> you write:
>...
>Btw, what's the purpose of the wierd cast in timout()? There is no
>place where the exact value of kintr matters, just if it is zero or
>not. I have changed it to a simple assignment.
>
>
>--- orig/timeout.c	Mon Aug  8 07:23:38 1994
>+++ timeout.c	Sat Aug 13 20:53:14 1994
>...
>@@ -276,9 +346,8 @@
> timeout()
> {
> 	int ms;		/* time between ticks */
>-	char *kintrptr = (char *)&kintr;
> 
>-	*kintrptr = (keyrec->head != keyrec->tail) ? -1 : 0;
>+	kintr = keyrec->head != keyrec->tail;
> 
> 	ms = *((short *)0x442L);
> 	if (proc_clock > 0)

well :) originally it was to distinguish first and repeated chars,
now it just saves some instructions...  (sne vs. sne, extw, notw)
and since its run at ipl6 maybe we should keep it?

 cheers
	Juergen