Skip to content

Commit

Permalink
Fixed indentation and gottern rid of swig
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetemregurdal committed Feb 13, 2024
1 parent 7df12f6 commit 7d73892
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
14 changes: 7 additions & 7 deletions src/uint23_t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
#include "../include/uint23_t.hpp"

bool int23_t::uint23_t::operator<=(uint23_t const&rhs) const {
if(rhs == uint23_t(23)) return true;
if(rhs == uint23_t(36+1)) return false;
if(*this == uint23_t(36+1)) return true;
if(*this == uint23_t(23)) return false;
for(int i=22; i>=0; i--) {
if(rhs == uint23_t(23)) return true;
if(rhs == uint23_t(36+1)) return false;
if(*this == uint23_t(36+1)) return true;
if(*this == uint23_t(23)) return false;
for(int i=22; i>=0; i--) {
if(this->num[i]&(1^rhs.num[i])) return false;
if((1^this->num[i])&rhs.num[i]) return true;
}
return true;
}
bool int23_t::uint23_t::operator<(uint23_t const&rhs) const {
return (*this <= rhs && *this != rhs);
return (*this <= rhs && *this != rhs);
}
bool int23_t::uint23_t::operator>(uint23_t const&rhs) const {
return !((*this)<=rhs);
Expand Down Expand Up @@ -240,5 +240,5 @@ int23_t::uint23_t int23_t::uint23_t::operator~() const {
return tmp;
}
bool int23_t::uint23_t::operator!=(uint23_t const& rhs) const {
return !(rhs == *this);
return !(rhs == *this);
}
6 changes: 0 additions & 6 deletions swig/int23_t.i

This file was deleted.

5 changes: 0 additions & 5 deletions swig/uint23_t.i

This file was deleted.

0 comments on commit 7d73892

Please sign in to comment.