import '../../../../../globals.js';
// Copyright 2023-2024, University of Colorado Boulder
/**
 * See https://stackoverflow.com/questions/2745074/fast-ceiling-of-an-integer-division-in-c-c
 *
 * @author Jonathan Olson <jonathan.olson@colorado.edu>
 */
import { alpenglow, wgsl } from '../../../imports.js';
// Math.ceil( x / y ), but with unsigned numbers
const ceilDivideWGSL = (x, y) => {
    return wgsl `( ( ( ${x} ) + ( ${y} ) - 1u ) / ( ${y} ) )`;
};
export default ceilDivideWGSL;
alpenglow.register('ceilDivideWGSL', ceilDivideWGSL);
//# sourceMappingURL=ceilDivideWGSL.js.map