[Mesa-dev] [PATCH] c99_math: Implement exp2f for MSVC.

Jose Fonseca jfonseca at vmware.com
Thu Jul 16 06:24:18 PDT 2015


On 16/07/15 05:30, Matt Turner wrote:
> ---
> This will go in before my double promotion series which uses exp2f.
>
>   include/c99_math.h | 6 ++++++
>   1 file changed, 6 insertions(+)
>
> diff --git a/include/c99_math.h b/include/c99_math.h
> index 7ed7cc2..0ca5a73 100644
> --- a/include/c99_math.h
> +++ b/include/c99_math.h
> @@ -140,6 +140,12 @@ llrintf(float f)
>      return rounded;
>   }
>
> +static inline float
> +exp2f(float f)
> +{
> +   return powf(2.0f, f);
> +}
> +
>   #endif /* C99 */
>
>
>

Looks good. Thanks.

Reviewed-by: Jose Fonseca <jfonseca at vmware.com>


More information about the mesa-dev mailing list