1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
//------------------------------------------------------------------------------
// GB_iceil.h: definitions for ceiling (a/b)
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
//------------------------------------------------------------------------------
#ifndef GB_ICEIL_H
#define GB_ICEIL_H
// ceiling of a/b for two integers a and b
#define GB_ICEIL(a,b) (((a) + (b) - 1) / (b))
#endif
|