enable aarch64 74/57274/1
authorYury Usishchev <y.usishchev@samsung.com>
Mon, 26 Oct 2015 11:34:37 +0000 (14:34 +0300)
committerDongkyun, Son <dongkyun.s@samsung.com>
Mon, 18 Jan 2016 13:35:43 +0000 (22:35 +0900)
Change-Id: I78a5f597dd43090e2f294f05def81d20692b4231

configure.in
longlong.h
mpn/Makefile.am

index 78840e2b801c2152d3886cccd9de85131dca7c87..3dc5886a05d99c814216cc1cdf02045322c9357c 100644 (file)
@@ -523,6 +523,10 @@ case $host in
     path="cray"
     ;;
 
+  arm64*-*-* | aarch64*-*-*)
+    gcc_cflags_maybe="-mfpu=neon"
+    path="arm64"
+    ;;
 
   arm*-*-*)
     path="arm"
index b53fbee409d2f2fc005545b41acdaafcf67bbd86..1bf32a4e798c045cf1c3b8cc51a85a58c3dc11c4 100644 (file)
@@ -497,6 +497,11 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO ((UWtype *, UWtype, UWtype, UWtype));
 #endif /* LONGLONG_STANDALONE */
 #endif
 #endif /* __arm__ */
+#if defined (__aarch64__) && W_TYPE_SIZE == 64
+#define count_leading_zeros(count, x)  count_leading_zeros_gcc_clz(count, x)
+#define count_trailing_zeros(count, x)  count_trailing_zeros_gcc_ctz(count, x)
+#define COUNT_LEADING_ZEROS_0 64
+#endif /* __aarch64__ */
 
 #if defined (__clipper__) && W_TYPE_SIZE == 32
 #define umul_ppmm(w1, w0, u, v) \
index b9827e956299957ba996bc2637f63201ef34ec44..ecf6da5e6a88263364b18a57dd608d96284e4644 100644 (file)
@@ -56,7 +56,7 @@ nodist_libmpn_la_SOURCES = fib_table.c mp_bases.c
 libmpn_la_LIBADD = $(OFILES)
 libmpn_la_DEPENDENCIES = $(OFILES)
 
-TARG_DIST = a29k alpha arm clipper cray generic i960 ia64 lisp m68k \
+TARG_DIST = a29k alpha arm arm64 clipper cray generic i960 ia64 lisp m68k \
   m88k mips32 mips64 ns32k pa32 pa64 power powerpc32 powerpc64 pyr s390 sh \
   sparc32 sparc64 thumb vax x86 x86_64 z8000 z8000x