mips.h 698 B

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