|
1 | | -/* aos_crc64.c -- compute CRC-64 |
| 1 | +/* qcloud_aos_crc64.c -- compute CRC-64 |
2 | 2 | * Copyright (C) 2013 Mark Adler |
3 | 3 | * Version 1.4 16 Dec 2013 Mark Adler |
4 | 4 | */ |
|
37 | 37 | 1.4 16 Dec 2013 Make once variable volatile for limited thread protection |
38 | 38 | */ |
39 | 39 |
|
40 | | -#include "aos_crc64.h" |
| 40 | +#include "QCloudCRC64.h" |
41 | 41 | #include <pthread.h> |
42 | 42 |
|
43 | 43 | /* 64-bit CRC polynomial with these coefficients, but reversed: |
@@ -201,7 +201,7 @@ static inline uint64_t crc64_big(uint64_t crc, void *buf, size_t len) |
201 | 201 | at compile time if it can, and get rid of the unused code and table. If the |
202 | 202 | endianess can be changed at run time, then this code will handle that as |
203 | 203 | well, initializing and using two tables, if called upon to do so. */ |
204 | | -uint64_t aos_crc64(uint64_t crc, void *buf, size_t len) |
| 204 | +uint64_t qcloud_aos_crc64(uint64_t crc, void *buf, size_t len) |
205 | 205 | { |
206 | 206 | uint64_t n = 1; |
207 | 207 |
|
@@ -236,7 +236,7 @@ static void gf2_matrix_square(uint64_t *square, uint64_t *mat) |
236 | 236 | /* Return the CRC-64 of two sequential blocks, where crc1 is the CRC-64 of the |
237 | 237 | first block, crc2 is the CRC-64 of the second block, and len2 is the length |
238 | 238 | of the second block. */ |
239 | | -uint64_t aos_crc64_combine(uint64_t crc1, uint64_t crc2, uintmax_t len2) |
| 239 | +uint64_t qcloud_aos_crc64_combine(uint64_t crc1, uint64_t crc2, uintmax_t len2) |
240 | 240 | { |
241 | 241 | unsigned n; |
242 | 242 | uint64_t row; |
|
0 commit comments