This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, spu] add libgcc functions __multi3, __udivmodti4, etc
> Trevor_Smigiel@PlayStation.Sony.Com
> 05/08/2008 08:52 PM
>
> To
>
> Sa Liu/Germany/IBM@IBMDE
>
> cc
>
> Segher Boessenkool <segher@kernel.crashing.org>,
> Andrew_Pinski@PlayStation.Sony.Com, gcc-patches@gcc.gnu.org
>
> Subject
>
> Re: [PATCH, spu] add libgcc functions __multi3, __udivmodti4, etc
>
> Use the si_from_*() and si_to_*() intrinsics.
>
> static
> unsigned int count_leading_zeros (UDItype x)
> {
> qword c = si_clz (si_from_ullong (x));
> unsigned int h = si_to_uint (c);
> unsigned int l = si_to_uint (si_shlqbyi (c, 4));
> return (h == 32) ? 32 + l : h;
> }
Thanks! I've changed the patch with this code. How about the rest of the
patch?
Sa
- References:
- [PATCH, spu] add libgcc functions __multi3, __udivmodti4, etc
- Re: [PATCH, spu] add libgcc functions __multi3, __udivmodti4, etc
- Re: [PATCH, spu] add libgcc functions __multi3, __udivmodti4, etc
- Re: [PATCH, spu] add libgcc functions __multi3, __udivmodti4, etc
- Re: [PATCH, spu] add libgcc functions __multi3, __udivmodti4, etc
- Re: [PATCH, spu] add libgcc functions __multi3, __udivmodti4, etc