MCPcopy Create free account
hub / github.com/NVIDIA/cuda-tile / getMaxUnsignedValueForBitwidth

Method getMaxUnsignedValueForBitwidth

lib/Dialect/CudaTile/IR/CudaTile.cpp:55–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55uint64_t cuda_tile::getMaxUnsignedValueForBitwidth(int64_t n) {
56 assert(n > 0 && n <= 64 && "invalid bitwidth");
57 if (n == 64)
58 return std::numeric_limits<uint64_t>::max();
59 return (static_cast<int64_t>(1) << n) - 1;
60}
61
62cuda_tile::ModuleOp cuda_tile::extractCudaTileModuleOp(Operation *op) {
63 // Try direct cast first

Callers

nothing calls this directly

Calls 1

maxFunction · 0.85

Tested by

no test coverage detected