mirror of https://github.com/CGAL/cgal
No need for an overload
This commit is contained in:
parent
535045a527
commit
258d96fdf2
|
|
@ -27,31 +27,10 @@
|
|||
|
||||
#include <vector>
|
||||
|
||||
#if CGAL_USE_CORE
|
||||
#include <CGAL/CORE/BigInt.h>
|
||||
#endif
|
||||
|
||||
namespace CGAL {
|
||||
|
||||
namespace internal {
|
||||
|
||||
#if CGAL_USE_CORE
|
||||
// bugfix for CORE by Michael Kerber
|
||||
// why is there a specialized function for CORE?
|
||||
inline CORE::BigInt shift_integer_by(CORE::BigInt x, long shift){
|
||||
if( shift > 0 ){
|
||||
while(shift>63) {
|
||||
x = (x >> 63);
|
||||
shift-=63;
|
||||
}
|
||||
x = (x >> shift);
|
||||
}else{
|
||||
// add 0 bits
|
||||
x = (x << -shift);
|
||||
}
|
||||
return x;
|
||||
}
|
||||
#endif
|
||||
|
||||
template <class Shiftable>
|
||||
Shiftable shift_integer_by(Shiftable x, long shift){
|
||||
|
|
|
|||
Loading…
Reference in New Issue