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

org.nd4j.bytebuddy.arithmetic.stackmanipulation.OpStackManipulation Maven / Gradle / Ivy

There is a newer version: 0.9.1
Show newest version
package org.nd4j.bytebuddy.arithmetic.stackmanipulation;

import net.bytebuddy.implementation.bytecode.StackManipulation;
import org.nd4j.bytebuddy.arithmetic.ByteBuddyIntArithmetic;

/**
 * Stack manipulations for integer
 * arithmetic:
 * add
 * sub
 * mul
 * div
 * mod
 *
 * @author Adam Gibson
 */
public class OpStackManipulation {
    private OpStackManipulation() {
    }

    /**
     * Stack manipulation for addition
     * @return
     */
    public static StackManipulation add() {return ByteBuddyIntArithmetic.IntegerAddition.INSTANCE;}

    /**
     * Stack manipulation for subtraction
     * @return
     */
    public static StackManipulation sub() {return ByteBuddyIntArithmetic.IntegerSubtraction.INSTANCE;}

    /**
     * Stack manipulation for multiplication
     * @return
     */
    public static StackManipulation mul() {return ByteBuddyIntArithmetic.IntegerMultiplication.INSTANCE;}

    /**
     * Stack manipulation for division
     * @return
     */
    public static StackManipulation div() {return ByteBuddyIntArithmetic.IntegerDivision.INSTANCE;}

    /**
     * Stack manipulation for mod
     * @return
     */
    public static StackManipulation mod() {return ByteBuddyIntArithmetic.IntegerMod.INSTANCE;}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy