[Libclc-dev] [PATCH] Add mul_hi implementation

Aaron Watry awatry at gmail.com
Wed Aug 14 15:08:37 PDT 2013


Ick.  Some of the follow-up discussion from that page makes me a bit
nervous.  I'll re-write this using a similar method so as to avoid any
possible issues.

--Aaron

On Wed, Aug 14, 2013 at 4:13 PM, Matt Arsenault
<Matthew.Arsenault at amd.com> wrote:
> On 08/14/2013 02:10 PM, Tom Stellard wrote:
>>
>> On Tue, Aug 13, 2013 at 12:59:59PM -0500, Aaron Watry wrote:
>>>
>>> Everything except long/ulong is handled by just casting to the next
>>> larger type,
>>> doing the math and then shifting/casting the result.
>>>
>>> For 64-bit types, we break the high/low parts of each operand apart, and
>>> do
>>> a FOIL-based multiplication.  The algorithm was originally from
>>> StackOverflow
>>> and modified for CL-based purposes and extended to handle ulong.
>>>
>>> If we have concerns about the source, we can use the POCL implementation
>>> instead since I believe that also has a compatible license declaration.
>>
>> I can't really help you with any licensing issues.  You will need to do
>> your own research to determine whether or not StackOverflow postings are
>> licensed using a license that is compatible to libclc.
>>
>> Aside from any licensing issues, this patch is:
>>
>> R
>
> StackOverflow posts are creative commons: "user contributed content licensed
> under cc-wiki with attribution required"
>
> http://blog.stackoverflow.com/2009/06/attribution-required/
>




More information about the Libclc-dev mailing list