I'm a bit surprised this got a good amount of attention, and not surprised at the absurdity of patenting such a simple looking instruction. At least now, people are free to use this without consequence, and it was a patent from an established company who made use of it.
-
-
Prikaži ovu nit
-
Novi razgovor -
-
-
Um... okay this is growing even more... I don't have a Soundcloud... Umm... I make games?https://gamepopper.itch.io/
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
And clever as it is, it is not yet elegant as this one: (a&b) + ((a^b) >> 1)
-
I think the patent refers to a HW implementation of an "average" instruction. The above, AFAICS, though possibly useful in SW to avoid overflow, would be a more expensive way of doing it in HW.
- Još 3 druga odgovora
Novi razgovor -
-
-
I think they just patented an hardware circuit to do it in one instruction. I can't comment on whether that's a reasonable thing to patent
-
It's not a single instruction on most existing architectures. In fact for many it'd be more instructions than ADD r0, r1, r2 ROR r0, r0, #1 On a 32b ISA the ADD produces a 33 bit result (top bit in C) and the ROR divides the 33 bit number by 2 producing a 32 bit result.
- Još 2 druga odgovora
Novi razgovor -
-
-
This is a hardware patent. When written out (in software) the way you write it out, it would typically be 6 CPU instructions. The patent appears to be on how to make that operation into a single instruction
-
Ah, that makes more sense. Though I'm curious what CPUs implement that, then. Exynos kit, I suppose?
- Još 1 odgovor
Novi razgovor -
-
-
You're missing the relevant part which is "in a single instruction". Samsung didn't patent a trivial line of code, they patented the hw design that makes it single op.
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.