Math

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

ipow

Integer power

CCCL 3.1.0

CUDA 13.1

is_power_of_two

If the value is a power of two

CCCL 3.1.0

CUDA 13.1

isqrt

Integer square root

CCCL 3.1.0

CUDA 13.1

neg

Integer negation

CCCL 3.1.0

CUDA 13.1

next_power_of_two

Next power of two

CCCL 3.1.0

CUDA 13.1

prev_power_of_two

Previous power of two

CCCL 3.1.0

CUDA 13.1

uabs

Unsigned absolute value

CCCL 3.1.0

CUDA 13.1