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 Power ISA-specific
11 // for definition of MFBT_DATA
12 #include "mozilla/Types.h"
15 namespace ppc_private
{
16 extern bool MFBT_DATA vmx_enabled
;
17 extern bool MFBT_DATA vsx_enabled
;
18 extern bool MFBT_DATA vsx3_enabled
;
19 } // namespace ppc_private
21 inline bool supports_vmx() {
23 return ppc_private::vmx_enabled
;
29 inline bool supports_vsx() {
31 return ppc_private::vsx_enabled
;
37 inline bool supports_vsx3() {
39 return ppc_private::vsx3_enabled
;
45 } // namespace mozilla
47 #endif /* !defined(mozilla_ppc_h_) */