gfx/ycbcr/chromium_types.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*-
michael@0 2 * This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5 #ifndef GFX_CHROMIUMTYPES_H
michael@0 6 #define GFX_CHROMIUMTYPES_H
michael@0 7
michael@0 8 #include <stdint.h>
michael@0 9
michael@0 10 // On Windows, protypes.h is #included, which defines these types. This sucks!
michael@0 11 #ifndef PROTYPES_H
michael@0 12 typedef uint8_t uint8;
michael@0 13 typedef int8_t int8;
michael@0 14 typedef int16_t int16;
michael@0 15 typedef uint16_t uint16;
michael@0 16 typedef uint32_t uint32;
michael@0 17 #endif
michael@0 18
michael@0 19 // From Chromium build_config.h:
michael@0 20 // Processor architecture detection. For more info on what's defined, see:
michael@0 21 // http://msdn.microsoft.com/en-us/library/b0084kay.aspx
michael@0 22 // http://www.agner.org/optimize/calling_conventions.pdf
michael@0 23 // or with gcc, run: "echo | gcc -E -dM -"
michael@0 24 #if defined(_M_X64) || defined(__x86_64__)
michael@0 25 #define ARCH_CPU_X86_FAMILY 1
michael@0 26 #define ARCH_CPU_X86_64 1
michael@0 27 #define ARCH_CPU_64_BITS 1
michael@0 28 #elif defined(_M_IX86) || defined(__i386__) || defined(__i386)
michael@0 29 #define ARCH_CPU_X86_FAMILY 1
michael@0 30 #define ARCH_CPU_X86_32 1
michael@0 31 #define ARCH_CPU_X86 1
michael@0 32 #define ARCH_CPU_32_BITS 1
michael@0 33 #elif defined(__ARMEL__)
michael@0 34 #define ARCH_CPU_ARM_FAMILY 1
michael@0 35 #define ARCH_CPU_ARMEL 1
michael@0 36 #define ARCH_CPU_32_BITS 1
michael@0 37 #elif defined(__ppc__) || defined(__powerpc) || defined(__PPC__)
michael@0 38 #define ARCH_CPU_PPC_FAMILY 1
michael@0 39 #define ARCH_CPU_PPC 1
michael@0 40 #define ARCH_CPU_32_BITS 1
michael@0 41 #elif defined(__sparc)
michael@0 42 #define ARCH_CPU_SPARC_FAMILY 1
michael@0 43 #define ARCH_CPU_SPARC 1
michael@0 44 #define ARCH_CPU_32_BITS 1
michael@0 45 #elif defined(__sparcv9)
michael@0 46 #define ARCH_CPU_SPARC_FAMILY 1
michael@0 47 #define ARCH_CPU_SPARC 1
michael@0 48 #define ARCH_CPU_64_BITS 1
michael@0 49 #elif defined(__aarch64__)
michael@0 50 #define ARCH_CPU_AARCH64_FAMILY 1
michael@0 51 #define ARCH_CPU_AARCH64 1
michael@0 52 #define ARCH_CPU_64_BITS 1
michael@0 53 #else
michael@0 54 #warning Please add support for your architecture in chromium_types.h
michael@0 55 #endif
michael@0 56
michael@0 57 #endif // GFX_CHROMIUMTYPES_H

mercurial