All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pdfjet.QRMath Maven / Gradle / Ivy

/*    */ package com.pdfjet;
/*    */ 
/*    */ class QRMath
/*    */ {
/* 24 */   private static final int[] EXP_TABLE = new int[256];
/* 25 */   private static final int[] LOG_TABLE = new int[256];
/*    */ 
/*    */   public static int glog(int paramInt)
/*    */   {
/* 45 */     if (paramInt < 1) {
/* 46 */       throw new ArithmeticException("log(" + paramInt + ")");
/*    */     }
/*    */ 
/* 49 */     return LOG_TABLE[paramInt];
/*    */   }
/*    */ 
/*    */   public static int gexp(int paramInt) {
/* 53 */     while (paramInt < 0) {
/* 54 */       paramInt += 255;
/*    */     }
/*    */ 
/* 57 */     while (paramInt >= 256) {
/* 58 */       paramInt -= 255;
/*    */     }
/*    */ 
/* 61 */     return EXP_TABLE[paramInt];
/*    */   }
/*    */ 
/*    */   static
/*    */   {
/* 28 */     for (int i = 0; i < 8; i++) {
/* 29 */       EXP_TABLE[i] = (1 << i);
/*    */     }
/*    */ 
/* 32 */     for (i = 8; i < 256; i++) {
/* 33 */       EXP_TABLE[i] = (EXP_TABLE[(i - 4)] ^ EXP_TABLE[(i - 5)] ^ EXP_TABLE[(i - 6)] ^ EXP_TABLE[(i - 8)]);
/*    */     }
/*    */ 
/* 39 */     for (i = 0; i < 255; i++)
/* 40 */       LOG_TABLE[EXP_TABLE[i]] = i;
/*    */   }
/*    */ }

/* Location:           E:\EGGWIFI\Customer\trunk\src\Workspace\Customer\Customer Maven Webapp\src\main\webapp\WEB-INF\lib\PDFjet.jar
 * Qualified Name:     com.pdfjet.QRMath
 * JD-Core Version:    0.6.2
 */




© 2015 - 2024 Weber Informatics LLC | Privacy Policy