Commits

didier deshommes committed 1af8d80 Draft

change names

Comments (0)

Files changed (3)

  *    field and acquire the native value associated with that Pointer instance.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natInitializeLibrary(JNIEnv *env,
+Java_org_dfdeshom_math_GMP_natInitializeLibrary(JNIEnv *env,
                                                                jclass nativeMPI)
 {
 
  * @param this  an instance of NativeMPI.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natInitialize(JNIEnv *env, jobject this)
+Java_org_dfdeshom_math_GMP_natInitialize(JNIEnv *env, jobject this)
 {
   mpz_ptr _this; 
 
  *@param this  an instance of NativeMPI.
 */
 JNIEXPORT void JNICALL
-Java_GMP_natFinalize(JNIEnv *env, jobject this)
+Java_org_dfdeshom_math_GMP_natFinalize(JNIEnv *env, jobject this)
 {
 
   mpz_ptr _this;
  *@param n  a Java long primitive value.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natFromLong(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natFromLong(JNIEnv *env, jobject this,
                                                      jlong n)
 {
 
  *@param x  an instance of a NativeMPI's Pointer.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natFromBI(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natFromBI(JNIEnv *env, jobject this,
                                                    jobject x)
 {
 
  *           complement of the signed value to assign to this.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natFromByteArray(JNIEnv *env,
+Java_org_dfdeshom_math_GMP_natFromByteArray(JNIEnv *env,
                                                           jobject this,
                                                           jbyteArray v)
 {
 e.g. no white spaces in the middle, limited valid radix values, etc...
 */
 JNIEXPORT jint JNICALL
-Java_GMP_natFromString(JNIEnv *env,
+Java_org_dfdeshom_math_GMP_natFromString(JNIEnv *env,
                                                        jobject this, jstring s,
                                                        jint rdx)
 {
  *           be positive.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natFromSignedMagnitude(JNIEnv *env,
+Java_org_dfdeshom_math_GMP_natFromSignedMagnitude(JNIEnv *env,
                                                                 jobject this,
                                                                 jbyteArray m,
                                                                 jboolean isnegative)
  * @return  the Java string representing the value of this in base n.
  */
 JNIEXPORT jstring JNICALL
-Java_GMP_natToString(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natToString(JNIEnv *env, jobject this,
                                                      jint n)
 {
 
  *           this.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natToByteArray(JNIEnv *env,
+Java_org_dfdeshom_math_GMP_natToByteArray(JNIEnv *env,
                                                         jobject this,
                                                         jbyteArray r)
 {
  *          as well.
  */
 JNIEXPORT jint JNICALL
-Java_GMP_natAbsIntValue(JNIEnv *env,
+Java_org_dfdeshom_math_GMP_natAbsIntValue(JNIEnv *env,
                                                         jobject this)
 {
 
  @return  the, eventually truncated, double value of this NativeMPI.
 */
 JNIEXPORT jdouble JNICALL
-Java_GMP_natDoubleValue(JNIEnv *env,
+Java_org_dfdeshom_math_GMP_natDoubleValue(JNIEnv *env,
                                                         jobject this)
 {
 
          than y.
 */
 JNIEXPORT jint JNICALL
-Java_GMP_natCompare(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natCompare(JNIEnv *env, jobject this,
                                                     jobject x)
 {
 
  * @param r  a NativeMPI's Pointer such that r = this + x.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natAdd(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natAdd(JNIEnv *env, jobject this,
                                                 jobject x, jobject r)
 {
 
 /* output: */
 /* @param r  a NativeMPI's Pointer such that r = this - x. */
 JNIEXPORT void JNICALL
-Java_GMP_natSubtract(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natSubtract(JNIEnv *env, jobject this,
                                                      jobject x, jobject r)
 {
 
  * @param r  a NativeMPI's Pointer such that r = this * x.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natMultiply(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natMultiply(JNIEnv *env, jobject this,
                                                      jobject x, jobject r)
 {
 
  * @param r  a NativeMPI's Pointer such that r = this div x.
 */
 JNIEXPORT void JNICALL
-Java_GMP_natQuotient(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natQuotient(JNIEnv *env, jobject this,
                                                      jobject x, jobject r)
 {
 
  * @param r  a NativeMPI's Pointer such that r = this mod x.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natRemainder(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natRemainder(JNIEnv *env, jobject this,
                                                       jobject x, jobject r)
 {
 
  * @param r  a NativeMPI's Pointer such that r = this mod x.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natQuotientAndRemainder(JNIEnv *env,
+Java_org_dfdeshom_math_GMP_natQuotientAndRemainder(JNIEnv *env,
                                                                  jobject this,
                                                                  jobject x,
                                                                  jobject q,
  * @param r  a NativeMPI's Pointer such that r = this mod x.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natModulo(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natModulo(JNIEnv *env, jobject this,
                                                    jobject x, jobject r)
 {
 
  * @param r  a NativeMPI's Pointer such that r = this ** n.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natPow(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natPow(JNIEnv *env, jobject this,
                                                 jint n, jobject r)
 {
 
  *         has no multiplicative inverse.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natModPow(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natModPow(JNIEnv *env, jobject this,
                                                    jobject e, jobject m,
                                                    jobject r)
 {
  *         multiplicative inverse.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natModInverse(JNIEnv *env,
+Java_org_dfdeshom_math_GMP_natModInverse(JNIEnv *env,
                                                        jobject this,
                                                        jobject m, jobject r)
 {
  * @param r  a NativeMPI's Pointer such that r is the GCD of this and x.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natGCD(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natGCD(JNIEnv *env, jobject this,
                                                 jobject x, jobject r)
 {
 
  *          composite.
  */
 JNIEXPORT jint JNICALL
-Java_GMP_natTestPrimality(JNIEnv *env,
+Java_org_dfdeshom_math_GMP_natTestPrimality(JNIEnv *env,
                                                           jobject this, jint n)
 {
 
  * @param r  a NativeMPI's Pointer such that r = this * 2**n.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natShiftLeft(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natShiftLeft(JNIEnv *env, jobject this,
                                                       jint n, jobject r)
 {
 
  * @param r  a NativeMPI's Pointer such that r = floor(this / 2**n).
  */
 JNIEXPORT void JNICALL
-Java_GMP_natShiftRight(JNIEnv *env,
+Java_org_dfdeshom_math_GMP_natShiftRight(JNIEnv *env,
                                                        jobject this, jint n,
                                                        jobject r)
 {
  * @return  the 0-based index of the lowest significant bit set (to 1) in this.
  */
 JNIEXPORT jint JNICALL
-Java_GMP_natLowestSetBit(JNIEnv *env,
+Java_org_dfdeshom_math_GMP_natLowestSetBit(JNIEnv *env,
                                                          jobject this)
 {
 
  * @param r  a NativeMPI's Pointer such that r = abs(x).
  */
 JNIEXPORT void JNICALL
-Java_GMP_natAbs(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natAbs(JNIEnv *env, jobject this,
                                                 jobject r)
 {
 
  * @param r  a NativeMPI's Pointer such that r = -x.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natNegate(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natNegate(JNIEnv *env, jobject this,
                                                    jobject r)
 {
 
  * @return  the number of bits needed to represent this.
  */
 JNIEXPORT jint JNICALL
-Java_GMP_natBitLength(JNIEnv *env, jobject this)
+Java_org_dfdeshom_math_GMP_natBitLength(JNIEnv *env, jobject this)
 {
 
   mpz_srcptr _this;
  * @return  the number of bits set (to 1) in this.
  */
 JNIEXPORT jint JNICALL
-Java_GMP_natSetBitCount(JNIEnv *env,
+Java_org_dfdeshom_math_GMP_natSetBitCount(JNIEnv *env,
                                                         jobject this)
 {
 
  * @param r  a NativeMPI's Pointer such that r = this ^ x.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natXor(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natXor(JNIEnv *env, jobject this,
                                                 jobject x, jobject r)
 {
 
  * @param r  a NativeMPI's Pointer such that r = this | x.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natOr(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natOr(JNIEnv *env, jobject this,
                                                jobject x, jobject r)
 {
 
  * @param r  a NativeMPI's Pointer such that r = this & x.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natAnd(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natAnd(JNIEnv *env, jobject this,
                                                 jobject x, jobject r)
 {
 
  * @param r  a NativeMPI's Pointer such that r = this & ~x.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natAndNot(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natAndNot(JNIEnv *env, jobject this,
                                                    jobject x, jobject r)
 {
 
  * @param r  a copy of this NativeMPI's Pointer with its n-th bit flipped.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natFlipBit(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natFlipBit(JNIEnv *env, jobject this,
                                                     jint n, jobject r)
 {
 
  *          respectively.
  */
 JNIEXPORT jint JNICALL
-Java_GMP_natTestBit(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natTestBit(JNIEnv *env, jobject this,
                                                     jint n)
 {
 
  *           as requested.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natSetBit(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natSetBit(JNIEnv *env, jobject this,
                                                    jint n, jboolean setIt,
                                                    jobject r)
 {
  * @param r  a NativeMPI's Pointer such that r = ~this.
  */
 JNIEXPORT void JNICALL
-Java_GMP_natNot(JNIEnv *env, jobject this,
+Java_org_dfdeshom_math_GMP_natNot(JNIEnv *env, jobject this,
                                                 jobject r)
 {
 
 	jar cvf target/GMP.jar org/dfdeshom/math/GMP.class org/dfdeshom/math/Pointer*.class 
 
 clean: 
-	rm -rf org/dfdeshom/math/*.class org/dfdeshom/math/*.so *~ *.jar
+	rm -rf org/dfdeshom/math/*.class *.so *~ target/*.jar include
+	rm -rf org/dfdeshom/math/*.class