MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / __check_for_overflow

Function __check_for_overflow

system/lib/libcxx/src/hash.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52// against.
53
54inline void __check_for_overflow(size_t N) {
55 if constexpr (sizeof(size_t) == 4) {
56 if (N > 0xFFFFFFFB)
57 std::__throw_overflow_error("__next_prime overflow");
58 } else {
59 if (N > 0xFFFFFFFFFFFFFFC5ull)
60 std::__throw_overflow_error("__next_prime overflow");
61 }
62}
63
64size_t __next_prime(size_t n) {
65 const size_t L = 210;

Callers 1

__next_primeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected