summaryrefslogtreecommitdiffstats
path: root/third_party/jpeg-xl/lib/jxl/simd_util.h
blob: 62b68c989c2c0b4263f6a4a3387587445d73f238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) the JPEG XL Project Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

#ifndef LIB_JXL_SIMD_UTIL_H_
#define LIB_JXL_SIMD_UTIL_H_
#include <stddef.h>

namespace jxl {

// Maximal vector size in bytes.
size_t MaxVectorSize();

// Returns distance [bytes] between the start of two consecutive rows, a
// multiple of vector/cache line size but NOT CacheAligned::kAlias - see below.
size_t BytesPerRow(size_t xsize, size_t sizeof_t);

}  // namespace jxl

#endif  // LIB_JXL_SIMD_UTIL_H_