summaryrefslogtreecommitdiff
path: root/examples/printcpu.c
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2007-08-22 20:55:24 +0000
committerDavid Schleef <ds@schleef.org>2007-08-22 20:55:24 +0000
commitad16b1f3727c6af9731e57ca87e42857d1eab3f0 (patch)
treec9c57c9e53df28f76bc61a42a7582dcc6dc72829 /examples/printcpu.c
parent965ad90de1fe18c180633d196b22a6caffb37123 (diff)
downloadliboil-ad16b1f3727c6af9731e57ca87e42857d1eab3f0.tar.gz
* configure.ac:
* examples/printcpu.c: * liboil/Makefile.am: * liboil/arm/Makefile.am: * liboil/arm/math_vfp.c: * liboil/arm/math_vfp_asm.S: * liboil/liboilcpu.c: * liboil/liboilfunction.h: * m4/as-host-defines.m4: Add some VFP implementations for ARM. From Josep Torra Valles <josep@fluendo.com>
Diffstat (limited to 'examples/printcpu.c')
-rw-r--r--examples/printcpu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/printcpu.c b/examples/printcpu.c
index 00b4154..7014e28 100644
--- a/examples/printcpu.c
+++ b/examples/printcpu.c
@@ -81,6 +81,14 @@ oil_cpu_flags_to_string (unsigned int flags)
if (flags & OIL_IMPL_FLAG_ALTIVEC)
ret = string_append (ret, "altivec");
#endif
+#if defined(__arm__)
+ if (flags & OIL_IMPL_FLAG_EDSP)
+ ret = string_append (ret, "edsp");
+ if (flags & OIL_IMPL_FLAG_ARM6)
+ ret = string_append (ret, "arm6");
+ if (flags & OIL_IMPL_FLAG_VFP)
+ ret = string_append (ret, "vfp");
+#endif
if (ret == NULL) {
ret = strdup ("");
}