epoger@google.com | 0bba6bd | 2012-12-07 15:12:01 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2012 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | /** |
| 9 | * Pass any calls through to the CityHash library. |
| 10 | * This is the only source file that accesses the CityHash code directly. |
| 11 | */ |
| 12 | |
| 13 | #include "SkCityHash.h" |
| 14 | #include "SkTypes.h" |
| 15 | #include "city.h" |
| 16 | |
| 17 | uint32_t SkCityHash::Compute32(const char *data, size_t size) { |
| 18 | return CityHash32(data, size); |
| 19 | } |
| 20 | |
| 21 | uint64_t SkCityHash::Compute64(const char *data, size_t size) { |
| 22 | return CityHash64(data, size); |
| 23 | } |