Math

Math#

2026-10-01

2 min read time

Applies to Linux and Windows

This page covers the math extended API, providing integer arithmetic utilities including ceiling division, rounding, and integer logarithm functions.

Header

Content

CCCL Availability

CUDA Toolkit Availability

ceil_div

Ceiling division

CCCL 2.7.0

CUDA 12.8

round_up

Round up to the next multiple

CCCL 2.9.0

CUDA 12.9

round_down

Round down to the previous multiple

CCCL 2.9.0

CUDA 12.9

ilog2

Integer logarithm to the base 2

CCCL 3.0.0

CUDA 13.0

ilog10

Integer logarithm to the base 10

CCCL 3.0.0

CUDA 13.0