Class Add
java.lang.Object
javaforce.codec.gsm.Add
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic shortGSM_ABS(short a) static shortGSM_ADD(short a, short b) static shortgsm_asl(short a, int n) static shortgsm_asr(short a, int n) static shortgsm_div(short num, short denum) static intGSM_L_ADD(int a, int b) static intGSM_L_MULT(short a, short b) static shortGSM_MULT(short a, short b) static shortGSM_MULT_R(short a, short b) static shortgsm_norm(int a) static shortGSM_SUB(short a, short b) static shortSASR(int x, int by) static shortsaturate(int x) static shortsaturate(long x)
-
Constructor Details
-
Add
public Add()
-
-
Method Details
-
saturate
public static short saturate(int x) -
saturate
public static short saturate(long x) -
SASR
public static short SASR(int x, int by) -
GSM_ADD
public static short GSM_ADD(short a, short b) -
GSM_SUB
public static short GSM_SUB(short a, short b) -
GSM_MULT
public static short GSM_MULT(short a, short b) -
GSM_MULT_R
public static short GSM_MULT_R(short a, short b) -
GSM_ABS
public static short GSM_ABS(short a) -
GSM_L_MULT
- Throws:
IllegalArgumentException
-
GSM_L_ADD
public static int GSM_L_ADD(int a, int b) -
gsm_norm
- Throws:
IllegalArgumentException
-
gsm_asl
public static short gsm_asl(short a, int n) -
gsm_asr
public static short gsm_asr(short a, int n) -
gsm_div
- Throws:
IllegalArgumentException
-