• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2024 Google LLC
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 #ifndef SkFourByteTag_DEFINED
9 #define SkFourByteTag_DEFINED
10 
11 #include <cstdint>
12 
13 using SkFourByteTag = uint32_t;
14 
SkSetFourByteTag(char a,char b,char c,char d)15 static inline constexpr SkFourByteTag SkSetFourByteTag(char a, char b, char c, char d) {
16     return (((uint32_t)a << 24) | ((uint32_t)b << 16) | ((uint32_t)c << 8) | (uint32_t)d);
17 }
18 
19 #endif
20