mips.h (684B)
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/. */ 4 5 /* compile-time and runtime tests for whether to use MIPS-specific extensions */ 6 7 #ifndef mozilla_mips_h_ 8 #define mozilla_mips_h_ 9 10 // for definition of MFBT_DATA 11 #include "mozilla/Types.h" 12 13 namespace mozilla { 14 15 namespace mips_private { 16 extern bool MFBT_DATA isLoongson3; 17 } // namespace mips_private 18 19 inline bool supports_mmi() { 20 #ifdef __mips__ 21 return mips_private::isLoongson3; 22 #else 23 return false; 24 #endif 25 } 26 27 } // namespace mozilla 28 29 #endif /* !defined(mozilla_mips_h_) */