[Mesa-dev] [PATCH 1/2] util/macros: Move DIV_ROUND_UP to util/macros.h

Axel Davy axel.davy at ens.fr
Sun Apr 26 14:25:31 PDT 2015


On 26/04/2015 23:23, Axel Davy wrote :
> Move DIV_ROUND_UP to a shared location accessible everywhere
>
> Signed-off-by: Axel Davy <axel.davy at ens.fr>
> ---
> I want to use DIV_ROUND_UP in a galliumm nine patch
>   src/gallium/auxiliary/util/u_math.h                   | 1 -
>   src/gallium/drivers/svga/include/svga3d_surfacedefs.h | 3 +--
>   src/mesa/main/macros.h                                | 5 +----
>   src/util/macros.h                                     | 2 ++
>   4 files changed, 4 insertions(+), 7 deletions(-)
>
> diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h
> index 3d27a59..a2a2d4b 100644
> --- a/src/gallium/auxiliary/util/u_math.h
> +++ b/src/gallium/auxiliary/util/u_math.h
> @@ -796,7 +796,6 @@ void
>   util_fpstate_set(unsigned fpstate);
>   
>   
> -
>   #ifdef __cplusplus
>   }
>   #endif
>
Please forgive that small bad batch there.


More information about the mesa-dev mailing list