1 /* 2 * Copyright 2023 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 #ifndef SkCPUTypes_DEFINED 8 #define SkCPUTypes_DEFINED 9 10 // TODO(bungeman,kjlubick) There are a lot of assumptions throughout the codebase that 11 // these types are 32 bits, when they could be more or less. Public APIs should stop 12 // using these. Internally, we could use uint_fast8_t and uint_fast16_t, but not in 13 // public APIs due to ABI incompatibilities. 14 15 /** Fast type for unsigned 8 bits. Use for parameter passing and local 16 variables, not for storage 17 */ 18 typedef unsigned U8CPU; 19 20 /** Fast type for unsigned 16 bits. Use for parameter passing and local 21 variables, not for storage 22 */ 23 typedef unsigned U16CPU; 24 25 #endif 26