---
id: pr-cccl-cub-5210
repo: NVIDIA/cccl
pr: 5210
title: Expose Fast Modulo Division in libcu++
author: fbusato
date: '2025-07-16'
url: https://github.com/NVIDIA/cccl/pull/5210
source_category: upstream-code
architectures:
- sm100
tags:
- cutlass
techniques: []
hardware_features: []
kernel_types: []
languages:
- cute-dsl
captured_at: '2026-05-16'
status: merged
merge_sha: 75121e7b366519618ca31f6ff7de729b2dfb55e9
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- docs/libcudacxx/extended_api/math.rst
- docs/libcudacxx/extended_api/math/fast_mod_div.rst
- libcudacxx/include/cuda/__cmath/fast_modulo_division.h
- libcudacxx/include/cuda/cmath
- libcudacxx/include/cuda/std/__type_traits/make_nbit_int.h
- libcudacxx/test/libcudacxx/cuda/cmath/fast_modulo_division.pass.cpp
artifact_dir: evidence/pull-bundles/cccl-cub/gh-5210
head_ref_oid: 7e1bae32b9a01b47be2c7100aea8b9129cbaff67
---
# Expose Fast Modulo Division in libcu++

- Repository: `NVIDIA/cccl`
- PR: [5210](https://github.com/NVIDIA/cccl/pull/5210)
- Decision: `Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.`
- Reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.

## Changed Paths

- `docs/libcudacxx/extended_api/math.rst`
- `docs/libcudacxx/extended_api/math/fast_mod_div.rst`
- `libcudacxx/include/cuda/__cmath/fast_modulo_division.h`
- `libcudacxx/include/cuda/cmath`
- `libcudacxx/include/cuda/std/__type_traits/make_nbit_int.h`
- `libcudacxx/test/libcudacxx/cuda/cmath/fast_modulo_division.pass.cpp`

## Evidence Bundle

`evidence/pull-bundles/cccl-cub/gh-5210`
