MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / pow2_i64

Function pow2_i64

src/models/heartmula/codec.cpp:52–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 if (assets.codec_weights == nullptr) {
51 throw std::runtime_error("HeartCodec requires codec weights");
52 }
53}
54
55int64_t pow2_i64(size_t exponent) {
56 int64_t value = 1;
57 for (size_t i = 0; i < exponent; ++i) {
58 value *= 2;
59 }
60 return value;
61}

Callers 2

scalar_decoderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected