aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/SkCityHash.cpp
blob: a21aa89634ce9b377e4390b7fbb565f6db8f8de0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright 2012 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/**
 * Pass any calls through to the CityHash library.
 * This is the only source file that accesses the CityHash code directly.
 */

#include "SkCityHash.h"
#include "SkTypes.h"
#include "city.h"

uint32_t SkCityHash::Compute32(const char *data, size_t size) {
    return CityHash32(data, size);
}

uint64_t SkCityHash::Compute64(const char *data, size_t size) {
    return CityHash64(data, size);
}