-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drop log, add static, clang-format it
- Loading branch information
1 parent
4bdef21
commit 8d8b932
Showing
2 changed files
with
1,961 additions
and
1,811 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#ifndef BIGINT_HPP_INCLUDED | ||
#define BIGINT_HPP_INCLUDED | ||
|
||
// Declare methods on an arbitrary precision type | ||
|
||
template <typename IntType> | ||
class bigint | ||
{ | ||
public: | ||
static IntType abs(IntType arg0); | ||
static IntType neg(IntType arg0); | ||
static IntType incr(IntType arg0); | ||
static IntType decr(IntType arg0); | ||
static IntType add(IntType arg0, IntType arg1); | ||
static IntType sub(IntType arg0, IntType arg1); | ||
static IntType mul(IntType arg0, IntType arg1); | ||
static IntType div(IntType arg0, IntType arg1); | ||
static IntType rem(IntType arg0, IntType arg1); | ||
static IntType lsh(IntType arg0, IntType arg1); | ||
static IntType rsh(IntType arg0, IntType arg1); | ||
static IntType ash(IntType arg0, IntType arg1); | ||
static IntType bitwise_not(IntType arg0); | ||
static IntType bitwise_or(IntType arg0, IntType arg1); | ||
static IntType bitwise_and(IntType arg0, IntType arg1); | ||
static IntType bitwise_xor(IntType arg0, IntType arg1); | ||
static bool equal(IntType arg0, IntType arg1); | ||
static int cmp(IntType arg0, IntType arg1); | ||
}; | ||
|
||
#endif // BIGINT_HPP_INCLUDED |
Oops, something went wrong.