Backed out changeset 0a133d5fd155 (bug 1864534) for causing screenshot related failur...
[gecko.git] / mozglue / build / mips.h
bloba7c3ed54160d639822bbdc659dbec052dc7e977a
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 /* compile-time and runtime tests for whether to use MIPS-specific extensions */
7 #ifndef mozilla_mips_h_
8 #define mozilla_mips_h_
10 // for definition of MFBT_DATA
11 #include "mozilla/Types.h"
13 namespace mozilla {
15 namespace mips_private {
16 extern bool MFBT_DATA isLoongson3;
17 } // namespace mips_private
19 inline bool supports_mmi() {
20 #ifdef __mips__
21 return mips_private::isLoongson3;
22 #else
23 return false;
24 #endif
27 } // namespace mozilla
29 #endif /* !defined(mozilla_mips_h_) */