+#include "foo.h"
+
+
+static bool inttest()
+{
+ return dointtest(123,456,789,4444,55555);
+}
+
+static bool floattest()
+{
+#if __ppc__ || __ppc64__
+ return dofloattest(1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0,11.0,12.0,13.0);
+#elif __i386__ || __x86_64__ || __arm__
+ return true;
+#else
+ #error unknown arch
+#endif
+}
+
+#if __i386__ || __x86_64__ || __ppc__ || __ppc64__
+static bool vectorSupport()
+{
+#if __ppc__
+ uint32_t value;
+ size_t size=sizeof(uint32_t);
+ int err = sysctlbyname("hw.optional.altivec", &value, &size, NULL, 0);
+ //fprintf(stderr, "sysctlbyname() = %d\n", err);
+ return ( err == 0 );
+#else
+ return true;
+#endif
+}
+
+static bool vectortest()
+{
+ vFloat p1 = { 1.1, 1.2, 1.3, 1.4 };
+ vFloat p2 = { 2.1, 2.2, 2.3, 2.4 };
+ vFloat p3 = { 3.1, 3.2, 3.3, 3.4 };
+ vFloat p4 = { 4.1, 4.2, 4.3, 4.4 };
+ vFloat p5 = { 5.1, 5.2, 5.3, 5.4 };
+ return dovectortest(p1, p2, p3, p4, p5);
+}