summaryrefslogtreecommitdiffstats
path: root/security/nss/lib/freebl/altivec-types.h
diff options
context:
space:
mode:
Diffstat (limited to 'security/nss/lib/freebl/altivec-types.h')
-rw-r--r--security/nss/lib/freebl/altivec-types.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/security/nss/lib/freebl/altivec-types.h b/security/nss/lib/freebl/altivec-types.h
new file mode 100644
index 0000000000..118a7e0879
--- /dev/null
+++ b/security/nss/lib/freebl/altivec-types.h
@@ -0,0 +1,25 @@
+/*
+ * altivec-types.h - shorter vector typedefs
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+#ifndef _ALTIVEC_TYPES_H_
+#define _ALTIVEC_TYPES_H_ 1
+
+#include <altivec.h>
+
+typedef __vector unsigned char vec_u8;
+typedef __vector signed char vec_s8;
+typedef __vector unsigned short vec_u16;
+typedef __vector signed short vec_s16;
+typedef __vector unsigned int vec_u32;
+typedef __vector signed int vec_s32;
+#ifdef __VSX__
+typedef __vector unsigned long long vec_u64;
+typedef __vector signed long long vec_s64;
+#endif
+typedef __vector float vec_f;
+
+#endif