[Libclc-dev] [PATCH] Add mul_hi implementation

Matt Arsenault Matthew.Arsenault at amd.com
Wed Aug 14 14:13:21 PDT 2013

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"


More information about the Libclc-dev mailing list