Search Linux Wireless

RE: [PATCH 1/1] mac80211: Replace overly "sticky" averagingfiltersfor rssi, signal, noise.

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

 



 
> > Actually, "arithmetic" right shift works for either signed 
> or unsigned.
> > Arithmetic shift looks at the most-significant bit, and 
> shifts more of 
> > that in from the left, preserving the sign.
> 
> Eh, right. And I suppose it can actually optimise /16 by an 
> arithmetic shift.

Not sure if it would or wouldn't ... my by-hand analysis (see earlier
mail on this thread) found a subtle difference between:

(n * 15 / 16) vs. (n - (n >> 16)).

As it turned out, the 15/16 approach would have been slightly more
"sticky", IIRC.

-- Ben --

> 
> johannes
> 
-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux