<div dir="ltr"><div><div>I found on PCC website that it was imported in OpenBSD and NetBSD system so the license should be compatible.<br></div>I think I will use it as a base for  add, multiply, absolute value,
negate, convert to/from single precision, and comparison functions.<br><br></div>Tomorrow, I will make a draft of my proposal for GSoC in which I will resume everything. <br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-03-11 22:00 GMT+01:00 Ian Romanick <span dir="ltr"><<a href="mailto:idr@freedesktop.org" target="_blank">idr@freedesktop.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 03/10/2016 03:09 PM, Dylan Baker wrote:<br>
> Quoting Marek Olšák (2016-03-10 06:57:57)<br>
>> On Thu, Mar 10, 2016 at 3:30 PM, tournier.elie <<a href="mailto:tournier.elie@gmail.com">tournier.elie@gmail.com</a>> wrote:<br>
>>> First, thank you all for your answers.<br>
>>><br>
>>> So if I summarize what was said, we need<br>
>>> Ian:<br>
>>>  - add<br>
>>>  - negate<br>
>>>  - absolute value<br>
>>>  - multiply<br>
>>>  - reciprocal<br>
>>>  - convert to single precision<br>
>>>  - convert from single precision<br>
>>> Roland:<br>
>>>  - sqrt<br>
>>>  - comparaison (< / == / >)<br>
>>>  - floor/ceil<br>
>>> I will contact Pat Brown (His name appear in the contact field in [1]) to<br>
>>> know if we need the function below for implement gpu_shader_fp64.<br>
>>>  - pow<br>
>>>  - exp<br>
>>>  - log<br>
>>><br>
>>> About the license<br>
>>><br>
>>> Like I mentioned in the project description, there are quite a few<br>
>>> existing C implementations of these functions.  Finding one of those<br>
>>> that you can understand and that has a compatible license is probably<br>
>>> the best place to start.<br>
>>><br>
>>> Main Mesa code is under MIT license.<br>
>>> If I chose to use a GNU GPL license file like Linux kernel [3], my code must<br>
>>> be under GNU GPL and probably all the project too. Am I right?<br>
>>><br>
>>> [1] <a href="https://www.opengl.org/registry/specs/ARB/gpu_shader_fp64.txt" rel="noreferrer" target="_blank">https://www.opengl.org/registry/specs/ARB/gpu_shader_fp64.txt</a><br>
>>> [2] <a href="http://www.mesa3d.org/license.html" rel="noreferrer" target="_blank">http://www.mesa3d.org/license.html</a><br>
>>> [3]<br>
>>> <a href="https://github.com/torvalds/linux/blob/097f70b3c4d84ffccca15195bdfde3a37c0a7c0f/arch/arm/nwfpe/softfloat.c" rel="noreferrer" target="_blank">https://github.com/torvalds/linux/blob/097f70b3c4d84ffccca15195bdfde3a37c0a7c0f/arch/arm/nwfpe/softfloat.c</a><br>
>><br>
>> You can't use GNU GPL for this project.<br>
>><br>
>> The kernel as a whole is licensed under GNU GPL, but some source files<br>
>> aren't. The file you linked doesn't mention GNU GPL. Somebody needs to<br>
>> verify that the file you linked can be legally re-licensed under the<br>
>> MIT license. If not, I think you have to forget the contents of the<br>
>> file immediately, but I'm not a lawyer.<br>
>><br>
>> Marek<br>
>> _______________________________________________<br>
>> mesa-dev mailing list<br>
>> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
>> <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
><br>
> Most BSD style licenses are legally compatible, as long as none of the<br>
> developers object. One of the BSD kernels should have a softfloat<br>
> implementation that would be license compatible.<br>
<br>
</div></div>Yes, and there are a couple C compilers that have compatible licenses.<br>
Portable C Compiler (PCC) being one.  LLVM might also support some<br>
devices that lack floating-point hardware.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
> _______________________________________________<br>
> mesa-dev mailing list<br>
> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
><br>
<br>
<br>
</div></div></blockquote></div><br></div>