fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/akutil/unsignedint64.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     unsignedint64.h  -  description
00003 
00004     begin                : Thu Nov 13 2003
00005     copyright            : (C) 2003 by A Kopmann
00006     email                : kopmann@ipe.fzk.de
00007     status               :
00008     test                 :
00009     history              :
00010  ***************************************************************************/
00011 
00012 
00013 #ifndef UNSIGNEDINT64_H
00014 #define UNSIGNEDINT64_H
00015 
00016 
00023 class UnsignedInt64 {
00024 
00025 public:
00026         UnsignedInt64();
00027         ~UnsignedInt64();
00028 
00030   void add(unsigned long *sum1, unsigned long *sum2);
00031 
00033   void add(unsigned long *sum1, unsigned long sum2);
00034 
00036   void mult(unsigned long *prod1, unsigned long *prod2);
00037 
00039   void mult(unsigned long *prod1, unsigned short prod2);
00040 
00042   void div(unsigned long *div1, unsigned short div2);
00043 
00045   unsigned short mod(unsigned long *div1, unsigned short div2);
00046 
00048   int test(int level=0);
00049 
00051   unsigned long *get();
00052 
00053   //UnsignedInt64& operator=(UnsignedInt64& data);
00054 
00055 private:
00056 
00058   unsigned long data[2];
00059 
00060 };
00061 
00062 #endif