Skip to content

Cleanup comments and unnecessary global in mp_arith.h #2164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 8, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions src/util/mp_arith.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,16 @@ const mp_integer string2integer(const std::string &, unsigned base=10);
const std::string integer2binary(const mp_integer &, std::size_t width);
const mp_integer binary2integer(const std::string &, bool is_signed);

/// \deprecated use numeric_cast<unsigned long long> instead
DEPRECATED("Use numeric_cast<unsigned long long> instead")
/// \deprecated use numeric_cast_v<unsigned long long> instead
DEPRECATED("Use numeric_cast_v<unsigned long long> instead")
mp_integer::ullong_t integer2ulong(const mp_integer &);

/// \deprecated use numeric_cast<std::size_t> instead
DEPRECATED("Use numeric_cast<std::size_t> instead")
/// \deprecated use numeric_cast_v<std::size_t> instead
DEPRECATED("Use numeric_cast_v<std::size_t> instead")
std::size_t integer2size_t(const mp_integer &);

/// \deprecated use numeric_cast<unsigned> instead
DEPRECATED("Use numeric_cast<unsigned> instead")
/// \deprecated use numeric_cast_v<unsigned> instead
DEPRECATED("Use numeric_cast_v<unsigned> instead")
unsigned integer2unsigned(const mp_integer &);

const mp_integer mp_zero=string2integer("0");

#endif // CPROVER_UTIL_MP_ARITH_H