src/java.base/share/classes/java/util/zip/Adler32.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File jdk Cdiff src/java.base/share/classes/java/util/zip/Adler32.java

src/java.base/share/classes/java/util/zip/Adler32.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 26,35 **** --- 26,37 ---- package java.util.zip; import java.nio.ByteBuffer; import sun.nio.ch.DirectBuffer; + import jdk.internal.HotSpotIntrinsicCandidate; + /** * A class that can be used to compute the Adler-32 checksum of a data * stream. An Adler-32 checksum is almost as reliable as a CRC-32 but * can be computed much faster. *
*** 124,133 **** --- 126,138 ---- public long getValue() { return (long)adler & 0xffffffffL; } private native static int update(int adler, int b); + + @HotSpotIntrinsicCandidate private native static int updateBytes(int adler, byte[] b, int off, int len); + @HotSpotIntrinsicCandidate private native static int updateByteBuffer(int adler, long addr, int off, int len); }
src/java.base/share/classes/java/util/zip/Adler32.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File