Skip to content

Commit

Permalink
drop log, add static, clang-format it
Browse files Browse the repository at this point in the history
  • Loading branch information
JonChesterfield committed Aug 1, 2024
1 parent 4bdef21 commit 8d8b932
Show file tree
Hide file tree
Showing 2 changed files with 1,961 additions and 1,811 deletions.
30 changes: 30 additions & 0 deletions bigint.hpp
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
Loading

0 comments on commit 8d8b932

Please sign in to comment.