
org.openpdf.renderer.function.postscript.operation.Bitshift Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openpdf-renderer Show documentation
Show all versions of openpdf-renderer Show documentation
PDF renderer implementation supporting the subset of PDF 1.4 specification.
The newest version!
package org.openpdf.renderer.function.postscript.operation;
import java.util.Stack;
final class Bitshift implements PostScriptOperation {
@Override
/**
* int1 shift bitshift int2
*
* shifts the binary representation of int1 left by
* shift bits and returns the result. Bits shifted out
* are lost; bits shifted in are 0. If shift is negative,
* a right shift by –shift bits is performed.
* This PostScriptOperation produces an arithmetically correct
* result only for positive values of int1.
* Both int1 and shift must be integers.
*
* errors: stackunderflow, typecheck
*/
public void eval(Stack
© 2015 - 2025 Weber Informatics LLC | Privacy Policy