OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [gnu/] [java/] [math/] [GMP.h] - Blame information for rev 756

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 756 jeremybenn
 
2
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
3
 
4
#ifndef __gnu_java_math_GMP__
5
#define __gnu_java_math_GMP__
6
 
7
#pragma interface
8
 
9
#include <java/lang/Object.h>
10
#include <gcj/array.h>
11
 
12
extern "Java"
13
{
14
  namespace gnu
15
  {
16
    namespace classpath
17
    {
18
        class Pointer;
19
    }
20
    namespace java
21
    {
22
      namespace math
23
      {
24
          class GMP;
25
      }
26
    }
27
  }
28
}
29
 
30
class gnu::java::math::GMP : public ::java::lang::Object
31
{
32
 
33
public:
34
  GMP();
35
private:
36
  void acquireRef();
37
  void releaseRef();
38
public: // actually protected
39
  void finalize();
40
public:
41
  void fromByteArray(JArray< jbyte > *);
42
  void fromBI(::gnu::java::math::GMP *);
43
  void fromLong(jlong);
44
  jint fromString(::java::lang::String *, jint);
45
  void fromSignedMagnitude(JArray< jbyte > *, jboolean);
46
  ::java::lang::String * toString(jint);
47
  void toByteArray(JArray< jbyte > *);
48
  jdouble doubleValue();
49
  jint absIntValue();
50
  jint compare(::gnu::java::math::GMP *);
51
  void add(::gnu::java::math::GMP *, ::gnu::java::math::GMP *);
52
  void subtract(::gnu::java::math::GMP *, ::gnu::java::math::GMP *);
53
  void multiply(::gnu::java::math::GMP *, ::gnu::java::math::GMP *);
54
  void quotient(::gnu::java::math::GMP *, ::gnu::java::math::GMP *);
55
  void remainder(::gnu::java::math::GMP *, ::gnu::java::math::GMP *);
56
  void quotientAndRemainder(::gnu::java::math::GMP *, ::gnu::java::math::GMP *, ::gnu::java::math::GMP *);
57
  void modulo(::gnu::java::math::GMP *, ::gnu::java::math::GMP *);
58
  void pow(jint, ::gnu::java::math::GMP *);
59
  void modPow(::gnu::java::math::GMP *, ::gnu::java::math::GMP *, ::gnu::java::math::GMP *);
60
  void modInverse(::gnu::java::math::GMP *, ::gnu::java::math::GMP *);
61
  void gcd(::gnu::java::math::GMP *, ::gnu::java::math::GMP *);
62
  void shiftLeft(jint, ::gnu::java::math::GMP *);
63
  void shiftRight(jint, ::gnu::java::math::GMP *);
64
  void abs(::gnu::java::math::GMP *);
65
  void negate(::gnu::java::math::GMP *);
66
  jint bitLength();
67
  jint bitCount();
68
  void and$(::gnu::java::math::GMP *, ::gnu::java::math::GMP *);
69
  void or$(::gnu::java::math::GMP *, ::gnu::java::math::GMP *);
70
  void xor$(::gnu::java::math::GMP *, ::gnu::java::math::GMP *);
71
  void andNot(::gnu::java::math::GMP *, ::gnu::java::math::GMP *);
72
  void not$(::gnu::java::math::GMP *);
73
  void flipBit(jint, ::gnu::java::math::GMP *);
74
  jint testBit(jint);
75
  void setBit(jint, jboolean, ::gnu::java::math::GMP *);
76
  jint testPrimality(jint);
77
  jint lowestSetBit();
78
  static void natInitializeLibrary();
79
private:
80
  void natInitialize();
81
  void natFinalize();
82
  void natFromLong(jlong);
83
  void natFromBI(::gnu::classpath::Pointer *);
84
  void natFromByteArray(JArray< jbyte > *);
85
  jint natFromString(::java::lang::String *, jint);
86
  void natFromSignedMagnitude(JArray< jbyte > *, jboolean);
87
  ::java::lang::String * natToString(jint);
88
  void natToByteArray(JArray< jbyte > *);
89
  jint natAbsIntValue();
90
  jdouble natDoubleValue();
91
  jint natCompare(::gnu::classpath::Pointer *);
92
  void natAdd(::gnu::classpath::Pointer *, ::gnu::classpath::Pointer *);
93
  void natSubtract(::gnu::classpath::Pointer *, ::gnu::classpath::Pointer *);
94
  void natMultiply(::gnu::classpath::Pointer *, ::gnu::classpath::Pointer *);
95
  void natQuotient(::gnu::classpath::Pointer *, ::gnu::classpath::Pointer *);
96
  void natRemainder(::gnu::classpath::Pointer *, ::gnu::classpath::Pointer *);
97
  void natQuotientAndRemainder(::gnu::classpath::Pointer *, ::gnu::classpath::Pointer *, ::gnu::classpath::Pointer *);
98
  void natModulo(::gnu::classpath::Pointer *, ::gnu::classpath::Pointer *);
99
  void natPow(jint, ::gnu::classpath::Pointer *);
100
  void natModPow(::gnu::classpath::Pointer *, ::gnu::classpath::Pointer *, ::gnu::classpath::Pointer *);
101
  void natModInverse(::gnu::classpath::Pointer *, ::gnu::classpath::Pointer *);
102
  void natGCD(::gnu::classpath::Pointer *, ::gnu::classpath::Pointer *);
103
  jint natTestPrimality(jint);
104
  void natShiftLeft(jint, ::gnu::classpath::Pointer *);
105
  void natShiftRight(jint, ::gnu::classpath::Pointer *);
106
  jint natLowestSetBit();
107
  void natAbs(::gnu::classpath::Pointer *);
108
  void natNegate(::gnu::classpath::Pointer *);
109
  jint natBitLength();
110
  jint natSetBitCount();
111
  void natXor(::gnu::classpath::Pointer *, ::gnu::classpath::Pointer *);
112
  void natOr(::gnu::classpath::Pointer *, ::gnu::classpath::Pointer *);
113
  void natAnd(::gnu::classpath::Pointer *, ::gnu::classpath::Pointer *);
114
  void natAndNot(::gnu::classpath::Pointer *, ::gnu::classpath::Pointer *);
115
  void natFlipBit(jint, ::gnu::classpath::Pointer *);
116
  jint natTestBit(jint);
117
  void natSetBit(jint, jboolean, ::gnu::classpath::Pointer *);
118
  void natNot(::gnu::classpath::Pointer *);
119
  ::gnu::classpath::Pointer * __attribute__((aligned(__alignof__( ::java::lang::Object)))) native_ptr;
120
  jint refCount;
121
public:
122
  static ::java::lang::Class class$;
123
};
124
 
125
#endif // __gnu_java_math_GMP__

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.