Grok
9.5.0
src
lib
jp2
highway
hwy
examples
skeleton.h
Go to the documentation of this file.
1
// Copyright 2020 Google LLC
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
// Demo interface to target-specific code in skeleton.cc
16
17
// Normal header with include guard and namespace.
18
#ifndef HIGHWAY_HWY_EXAMPLES_SKELETON_H_
19
#define HIGHWAY_HWY_EXAMPLES_SKELETON_H_
20
21
#include <stddef.h>
22
23
// Platform-specific definitions used for declaring an interface, independent of
24
// the SIMD instruction set.
25
#include "
hwy/base.h
"
// HWY_RESTRICT
26
27
namespace
skeleton
{
28
29
// Computes base-2 logarithm by converting to float. Supports dynamic dispatch.
30
void
CallFloorLog2
(
const
uint8_t*
HWY_RESTRICT
in,
const
size_t
count,
31
uint8_t*
HWY_RESTRICT
out);
32
33
}
// namespace skeleton
34
35
#endif
// HIGHWAY_HWY_EXAMPLES_SKELETON_H_
base.h
HWY_RESTRICT
#define HWY_RESTRICT
Definition:
base.h:58
skeleton
Definition:
skeleton-inl.h:35
skeleton::CallFloorLog2
void CallFloorLog2(const uint8_t *HWY_RESTRICT in, const size_t count, uint8_t *HWY_RESTRICT out)
Generated by
1.9.1