src/java.base/share/native/libzip/CRC32.c
branchihse-remove-mapfiles-branch
changeset 56106 40e61db323c2
parent 47216 71c04702a3d5
child 49843 e0af66d6e968
equal deleted inserted replaced
56105:749e0ffa206f 56106:40e61db323c2
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    52         (*env)->ReleasePrimitiveArrayCritical(env, b, buf, 0);
    52         (*env)->ReleasePrimitiveArrayCritical(env, b, buf, 0);
    53     }
    53     }
    54     return crc;
    54     return crc;
    55 }
    55 }
    56 
    56 
    57 jint JNICALL
    57 JNIEXPORT jint JNICALL
    58 ZIP_CRC32(jint crc, const jbyte *buf, jint len)
    58 ZIP_CRC32(jint crc, const jbyte *buf, jint len)
    59 {
    59 {
    60     return crc32(crc, (Bytef*)buf, len);
    60     return crc32(crc, (Bytef*)buf, len);
    61 }
    61 }
    62 
    62