Project

General

Profile

Feature #167

Integer operations

Added by John Abbott almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tidying
Target version:
Start date:
24 May 2012
Due date:
% Done:

100%

Estimated time:
4.00 h
Spent time:

Description

While adding IsDivisible for integers, it was not clear where to put the declarations and definitions. So far they have been put in MachineInt.H and/or *BigInt.H though in a rather inconsistent manner.

To emphasise that MachineInt and BigInt are to be considered interchangeable (as far as is possible), the proposal is to put practically all basic arithmetic operations in a separate file (probably called IntOperations.H).

The price to pay is that anyone who wants just the MachineInt operations must also include the BigInt versions -- this is presumably a consequence of wanting them to be interchangeable.

History

#1 Updated by John Abbott almost 12 years ago

  • Category set to Philosophy
  • Status changed from New to In Progress
  • Assignee set to John Abbott
  • % Done changed from 0 to 10

The hard part will be all the consequential changes.

#2 Updated by John Abbott almost 12 years ago

  • Project changed from CoCoA to CoCoALib
  • Category deleted (Philosophy)

Problem originally arose in CoCoA-5, but the solution lies in changes to CoCoALib.

#3 Updated by John Abbott almost 12 years ago

I've moved (into IntOperations) and reorganized all the integer functions. There were lots of consequential changes. Everything works, so I have checked in.
Still have to update the documentation.

#4 Updated by John Abbott almost 12 years ago

  • % Done changed from 10 to 80

#5 Updated by John Abbott almost 12 years ago

  • Category set to Tidying
  • Target version set to CoCoALib-0.9951

#6 Updated by Anna Maria Bigatti almost 12 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 80 to 100

Also available in: Atom PDF