xref: /aoo42x/main/sal/inc/rtl/crc.h (revision b9fd132d)
19eab2a37SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
39eab2a37SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
49eab2a37SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
59eab2a37SAndrew Rist  * distributed with this work for additional information
69eab2a37SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
79eab2a37SAndrew Rist  * to you under the Apache License, Version 2.0 (the
89eab2a37SAndrew Rist  * "License"); you may not use this file except in compliance
99eab2a37SAndrew Rist  * with the License.  You may obtain a copy of the License at
109eab2a37SAndrew Rist  *
119eab2a37SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
129eab2a37SAndrew Rist  *
139eab2a37SAndrew Rist  * Unless required by applicable law or agreed to in writing,
149eab2a37SAndrew Rist  * software distributed under the License is distributed on an
159eab2a37SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
169eab2a37SAndrew Rist  * KIND, either express or implied.  See the License for the
179eab2a37SAndrew Rist  * specific language governing permissions and limitations
189eab2a37SAndrew Rist  * under the License.
199eab2a37SAndrew Rist  *
209eab2a37SAndrew Rist  *************************************************************/
219eab2a37SAndrew Rist 
229eab2a37SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _RTL_CRC_H_
25*b9fd132dSpfg #define _RTL_CRC_H_ "$Revision$"
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <sal/types.h>
28cdf0e10cSrcweir 
29cdf0e10cSrcweir #ifdef __cplusplus
30cdf0e10cSrcweir extern "C" {
31cdf0e10cSrcweir #endif
32cdf0e10cSrcweir 
33cdf0e10cSrcweir /*========================================================================
34cdf0e10cSrcweir  *
35cdf0e10cSrcweir  * rtl_crc32 interface.
36cdf0e10cSrcweir  *
37cdf0e10cSrcweir  *======================================================================*/
38cdf0e10cSrcweir /** Evaluate CRC32 over given data.
39cdf0e10cSrcweir     @descr This function evaluates the CRC polynomial 0xEDB88320.
40cdf0e10cSrcweir 
41cdf0e10cSrcweir     @param  Crc    [in] CRC32 over previous data or zero.
42cdf0e10cSrcweir 	@param  Data   [in] data buffer.
43cdf0e10cSrcweir 	@param  DatLen [in] data buffer length.
44cdf0e10cSrcweir 	@return new CRC32 value.
45cdf0e10cSrcweir  */
46cdf0e10cSrcweir sal_uInt32 SAL_CALL rtl_crc32 (
47cdf0e10cSrcweir 	sal_uInt32  Crc,
48cdf0e10cSrcweir 	const void *Data, sal_uInt32 DatLen
49cdf0e10cSrcweir ) SAL_THROW_EXTERN_C();
50cdf0e10cSrcweir 
51cdf0e10cSrcweir /*========================================================================
52cdf0e10cSrcweir  *
53cdf0e10cSrcweir  * The End.
54cdf0e10cSrcweir  *
55cdf0e10cSrcweir  *======================================================================*/
56cdf0e10cSrcweir 
57cdf0e10cSrcweir #ifdef __cplusplus
58cdf0e10cSrcweir }
59cdf0e10cSrcweir #endif
60cdf0e10cSrcweir 
61cdf0e10cSrcweir #endif /* _RTL_CRC_H_ */
62cdf0e10cSrcweir 
63