Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: m4/as-gcc-inline-assembly.m4

Issue 107243004: Updating Opus to release 1.1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/opus
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/opus_defines.h ('k') | m4/libtool.m4 » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dnl as-gcc-inline-assembly.m4 0.1.0 1 dnl as-gcc-inline-assembly.m4 0.1.0
2 2
3 dnl autostars m4 macro for detection of gcc inline assembly 3 dnl autostars m4 macro for detection of gcc inline assembly
4 4
5 dnl David Schleef <ds@schleef.org> 5 dnl David Schleef <ds@schleef.org>
6 6
7 dnl AS_COMPILER_FLAG(ACTION-IF-ACCEPTED, [ACTION-IF-NOT-ACCEPTED]) 7 dnl AS_COMPILER_FLAG(ACTION-IF-ACCEPTED, [ACTION-IF-NOT-ACCEPTED])
8 dnl Tries to compile with the given CFLAGS. 8 dnl Tries to compile with the given CFLAGS.
9 dnl Runs ACTION-IF-ACCEPTED if the compiler can compile with the flags, 9 dnl Runs ACTION-IF-ACCEPTED if the compiler can compile with the flags,
10 dnl and ACTION-IF-NOT-ACCEPTED otherwise. 10 dnl and ACTION-IF-NOT-ACCEPTED otherwise.
(...skipping 24 matching lines...) Expand all
35 [ 35 [
36 AC_MSG_CHECKING([if assembler supports NEON instructions on ARM]) 36 AC_MSG_CHECKING([if assembler supports NEON instructions on ARM])
37 37
38 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[__asm__("vorr d0,d0,d0")])], 38 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[__asm__("vorr d0,d0,d0")])],
39 [AC_MSG_RESULT([yes]) 39 [AC_MSG_RESULT([yes])
40 $1], 40 $1],
41 [AC_MSG_RESULT([no]) 41 [AC_MSG_RESULT([no])
42 $2]) 42 $2])
43 ]) 43 ])
44 44
45 AC_DEFUN([AS_ASM_ARM_NEON_FORCE],
46 [
47 AC_MSG_CHECKING([if assembler supports NEON instructions on ARM])
48
49 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[__asm__(".arch armv7-a\n.fpu neon\n.obj ect_arch armv4t\nvorr d0,d0,d0")])],
50 [AC_MSG_RESULT([yes])
51 $1],
52 [AC_MSG_RESULT([no])
53 $2])
54 ])
45 55
46 AC_DEFUN([AS_ASM_ARM_MEDIA], 56 AC_DEFUN([AS_ASM_ARM_MEDIA],
47 [ 57 [
48 AC_MSG_CHECKING([if assembler supports ARMv6 media instructions on ARM]) 58 AC_MSG_CHECKING([if assembler supports ARMv6 media instructions on ARM])
49 59
50 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[__asm__("shadd8 r3,r3,r3")])], 60 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[__asm__("shadd8 r3,r3,r3")])],
51 [AC_MSG_RESULT([yes]) 61 [AC_MSG_RESULT([yes])
52 $1], 62 $1],
53 [AC_MSG_RESULT([no]) 63 [AC_MSG_RESULT([no])
54 $2]) 64 $2])
55 ]) 65 ])
56 66
67 AC_DEFUN([AS_ASM_ARM_MEDIA_FORCE],
68 [
69 AC_MSG_CHECKING([if assembler supports ARMv6 media instructions on ARM])
70
71 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[__asm__(".arch armv6\n.object_arch armv 4t\nshadd8 r3,r3,r3")])],
72 [AC_MSG_RESULT([yes])
73 $1],
74 [AC_MSG_RESULT([no])
75 $2])
76 ])
57 77
58 AC_DEFUN([AS_ASM_ARM_EDSP], 78 AC_DEFUN([AS_ASM_ARM_EDSP],
59 [ 79 [
60 AC_MSG_CHECKING([if assembler supports EDSP instructions on ARM]) 80 AC_MSG_CHECKING([if assembler supports EDSP instructions on ARM])
61 81
62 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[__asm__("qadd r3,r3,r3")])], 82 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[__asm__("qadd r3,r3,r3")])],
63 [AC_MSG_RESULT([yes]) 83 [AC_MSG_RESULT([yes])
64 $1], 84 $1],
65 [AC_MSG_RESULT([no]) 85 [AC_MSG_RESULT([no])
66 $2]) 86 $2])
67 ]) 87 ])
88
89 AC_DEFUN([AS_ASM_ARM_EDSP_FORCE],
90 [
91 AC_MSG_CHECKING([if assembler supports EDSP instructions on ARM])
92
93 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[__asm__(".arch armv5te\n.object_arch ar mv4t\nqadd r3,r3,r3")])],
94 [AC_MSG_RESULT([yes])
95 $1],
96 [AC_MSG_RESULT([no])
97 $2])
98 ])
OLDNEW
« no previous file with comments | « include/opus_defines.h ('k') | m4/libtool.m4 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698