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

Method getMinSignedValueForBitwidth

lib/Dialect/CudaTile/IR/CudaTile.cpp:48–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48int64_t cuda_tile::getMinSignedValueForBitwidth(int64_t n) {
49 assert(n > 0 && n <= 64 && "invalid bitwidth");
50 if (n == 64)
51 return std::numeric_limits<int64_t>::min();
52 return -(static_cast<int64_t>(1) << (n - 1));
53}
54
55uint64_t cuda_tile::getMaxUnsignedValueForBitwidth(int64_t n) {
56 assert(n > 0 && n <= 64 && "invalid bitwidth");

Callers

nothing calls this directly

Calls 1

minFunction · 0.85

Tested by

no test coverage detected