Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Sep 2013 21:51:52 +0900
From:      Chie Taguchi <taguchi.ch@gmail.com>
To:        Tim Kientzle <tim@kientzle.com>
Cc:        Guillaume Bibaut <yom@iaelu.net>, freebsd-arm@freebsd.org
Subject:   Re: building document of Xorg
Message-ID:  <20130904215152.13dbc6edba2cef363779a3e9@gmail.com>
In-Reply-To: <3D90F8CB-14A3-4E9F-AE5A-E970E76AEA5F@gmail.com>
References:  <20130818101242.b3801b1b97dbe42cb905653c@gmail.com> <0D701E6E-8DE0-45DE-854B-133FCCC35C79@iaelu.net> <20130818212508.beddbf0e04a2f5f9a3a699a1@gmail.com> <20130819220401.11acd306a94e60a87d6424c9@gmail.com> <EE342965-2CDF-4074-A645-B64D34B6F7DC@kientzle.com> <3D90F8CB-14A3-4E9F-AE5A-E970E76AEA5F@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

--Multipart=_Wed__4_Sep_2013_21_51_52_+0900_kNe/DZIFXrepPVZU
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

i make another patch for libgcrypt, fix inline assembler error at clang.
it seems a little faster than gcc.:)

i will send PR this patch.

thanks.

C.Taguchi

--Multipart=_Wed__4_Sep_2013_21_51_52_+0900_kNe/DZIFXrepPVZU
Content-Type: text/plain;
 name="patch-libgcrypt.txt"
Content-Disposition: attachment;
 filename="patch-libgcrypt.txt"
Content-Transfer-Encoding: 7bit

diff -urN libgcrypt.orig/Makefile libgcrypt/Makefile
--- libgcrypt.orig/Makefile	2013-09-03 21:38:02.000000000 +0900
+++ libgcrypt/Makefile	2013-09-03 21:39:46.000000000 +0900
@@ -36,9 +36,6 @@
 BROKEN=	will not compile. See pr ports/166388
 .endif
 
-.elif ${ARCH} == "armv6"
-USE_GCC=4.2+
-
 .elif ${ARCH} == "i386"
 .if (${OSVERSION} < 900033)
 CONFIGURE_ARGS+=	--disable-aesni-support
diff -urN libgcrypt.orig/files/patch-mpi-longlong.h libgcrypt/files/patch-mpi-longlong.h
--- libgcrypt.orig/files/patch-mpi-longlong.h	2013-09-03 21:35:50.000000000 +0900
+++ libgcrypt/files/patch-mpi-longlong.h	2013-09-03 20:51:48.000000000 +0900
@@ -1,5 +1,42 @@
---- ./mpi/longlong.h.orig	2010-02-22 19:04:43.000000000 +0900
-+++ ./mpi/longlong.h	2010-11-01 18:25:34.000000000 +0900
+--- ./mpi/longlong.h.orig	2013-09-03 18:52:04.000000000 +0900
++++ ./mpi/longlong.h	2013-09-03 20:46:40.000000000 +0900
+@@ -188,8 +188,8 @@
+ #define add_ssaaaa(sh, sl, ah, al, bh, bl) \
+   __asm__ ("adds %1, %4, %5\n"                                          \
+ 	   "adc  %0, %2, %3"                                            \
+-	   : "=r" ((USItype)(sh)),                                      \
+-	     "=&r" ((USItype)(sl))                                      \
++	   : "=r" (sh),                                                 \
++	     "=&r" (sl)                                                 \
+ 	   : "%r" ((USItype)(ah)),                                      \
+ 	     "rI" ((USItype)(bh)),                                      \
+ 	     "%r" ((USItype)(al)),                                      \
+@@ -197,8 +197,8 @@
+ #define sub_ddmmss(sh, sl, ah, al, bh, bl) \
+   __asm__ ("subs %1, %4, %5\n"                                          \
+ 	   "sbc  %0, %2, %3"                                            \
+-	   : "=r" ((USItype)(sh)),                                      \
+-	     "=&r" ((USItype)(sl))                                      \
++	   : "=r" (sh),                                                 \
++	     "=&r" (sl)                                                 \
+ 	   : "r" ((USItype)(ah)),                                       \
+ 	     "rI" ((USItype)(bh)),                                      \
+ 	     "r" ((USItype)(al)),                                       \
+@@ -225,10 +225,10 @@
+ 	   : "r0", "r1", "r2")
+ #else
+ #define umul_ppmm(xh, xl, a, b)                                         \
+-  __asm__ ("%@ Inlined umul_ppmm\n"                                     \
+-	   "umull %r1, %r0, %r2, %r3"                                   \
+-		   : "=&r" ((USItype)(xh)),                             \
+-		     "=r" ((USItype)(xl))                               \
++  __asm__ ("@ Inlined umul_ppmm\n"                                      \
++	   "umull %1, %0, %2, %3"                                       \
++		   : "=&r" (xh),                                        \
++		     "=r" (xl)                                          \
+ 		   : "r" ((USItype)(a)),                                \
+ 		     "r" ((USItype)(b))                                 \
+ 		   : "r0", "r1")
 @@ -437,8 +437,8 @@
  #define add_ssaaaa(sh, sl, ah, al, bh, bl) \
    __asm__ ("addl %5,%1\n"                                               \

--Multipart=_Wed__4_Sep_2013_21_51_52_+0900_kNe/DZIFXrepPVZU
Content-Type: text/plain;
 name="libgcrypt-benchmark-clang-asm.txt"
Content-Disposition: attachment;
 filename="libgcrypt-benchmark-clang-asm.txt"
Content-Transfer-Encoding: 7bit

MD5          234375ms 546875ms 3046875ms 468750ms 234375ms
SHA1         468750ms 703125ms 3359375ms 703125ms 468750ms
RIPEMD160    390625ms 703125ms 3281250ms 703125ms 390625ms
TIGER192     703125ms 1171875ms 3828125ms 937500ms 859375ms
SHA256       781250ms 1328125ms 4062500ms 1015625ms 859375ms
SHA384       1328125ms 2109375ms 4687500ms 1562500ms 1250000ms
SHA512       1328125ms 2109375ms 4687500ms 1562500ms 1328125ms
SHA224       781250ms 1328125ms 4062500ms 1015625ms 859375ms
MD4          78125ms 468750ms 2968750ms 468750ms 234375ms
CRC32        156250ms 156250ms 2500000ms 390625ms 156250ms
CRC32RFC1510 156250ms 156250ms 2500000ms 390625ms 234375ms
CRC24RFC2440 625000ms 546875ms 2890625ms 781250ms 703125ms
WHIRLPOOL    5937500ms 6328125ms 9453125ms 6250000ms 6093750ms
TIGER        781250ms 1093750ms 3828125ms 1015625ms 781250ms
TIGER2       781250ms 1093750ms 3828125ms 1015625ms 859375ms

                ECB/Stream         CBC             CFB             OFB             CTR      
             --------------- --------------- --------------- --------------- ---------------
IDEA         2109375ms 2187500ms 2421875ms 2500000ms 2265625ms 2265625ms 2343750ms 2343750ms 4062500ms 3984375ms
3DES         5000000ms 5000000ms 5312500ms 5390625ms 5156250ms 5156250ms 5234375ms 5156250ms 6953125ms 6953125ms
CAST5        1562500ms 1562500ms 1796875ms 2031250ms 1640625ms 1718750ms 1875000ms 1718750ms 3437500ms 3515625ms
BLOWFISH     1718750ms 1718750ms 2031250ms 2109375ms 1875000ms 1875000ms 2031250ms 1953125ms 3671875ms 3671875ms
AES          1406250ms 1328125ms 1250000ms 1250000ms 1250000ms 1250000ms 1640625ms 1562500ms 1250000ms 1250000ms
AES192       1640625ms 1484375ms 1562500ms 1406250ms 1406250ms 1484375ms 1796875ms 1796875ms 1484375ms 1406250ms
AES256       1796875ms 1640625ms 1718750ms 1640625ms 1562500ms 1640625ms 2031250ms 2031250ms 1640625ms 1640625ms
TWOFISH      1328125ms 1328125ms 1562500ms 1562500ms 1484375ms 1484375ms 1562500ms 1562500ms 3125000ms 3046875ms
ARCFOUR      390625ms 468750ms
DES          2265625ms 2187500ms 2578125ms 2578125ms 2421875ms 2421875ms 2500000ms 2421875ms 4140625ms 4140625ms
TWOFISH128   1406250ms 1328125ms 1562500ms 1640625ms 1484375ms 1484375ms 1562500ms 1562500ms 3125000ms 3046875ms
SERPENT128   1718750ms 1562500ms 1875000ms 1875000ms 1718750ms 1796875ms 1875000ms 1796875ms 3437500ms 3437500ms
SERPENT192   1562500ms 1562500ms 1875000ms 1875000ms 1796875ms 1796875ms 1875000ms 1875000ms 3437500ms 3437500ms
SERPENT256   1640625ms 1562500ms 1875000ms 1875000ms 1796875ms 1796875ms 1875000ms 1875000ms 3437500ms 3437500ms
RFC2268_40   1718750ms 2187500ms 2031250ms 2500000ms 1875000ms 1796875ms 2031250ms 1875000ms 3593750ms 3593750ms
SEED         1328125ms 1406250ms 1562500ms 1718750ms 1484375ms 1484375ms 1562500ms 1406250ms 3203125ms 3125000ms
CAMELLIA128  2734375ms 2812500ms 3046875ms 3203125ms 2812500ms 2968750ms 2968750ms 2968750ms 4531250ms 4687500ms
CAMELLIA192  3046875ms 3125000ms 3281250ms 3359375ms 3203125ms 3203125ms 3203125ms 3203125ms 4843750ms 4843750ms
CAMELLIA256  3046875ms 3125000ms 3281250ms 3359375ms 3203125ms 3125000ms 3203125ms 3203125ms 4843750ms 4843750ms

Algorithm         generate  100*sign  100*verify
------------------------------------------------
RSA 1024 bit       7421875ms   77968750ms     2343750ms
RSA 2048 bit       29296875ms   426250000ms     5781250ms
RSA 3072 bit       949531250ms   1191640625ms     10781250ms
RSA 4096 bit       926093750ms   2526015625ms     17343750ms
DSA 1024/160             -   38203125ms     40546875ms
DSA 2048/224             -   143593750ms     139453125ms
DSA 3072/256             -   314218750ms     283593750ms
ECDSA 192 bit      3671875ms   95000000ms     171718750ms
ECDSA 224 bit      4296875ms   112187500ms     205546875ms
ECDSA 256 bit      5234375ms   132109375ms     246718750ms
ECDSA 384 bit      10625000ms   262343750ms     488046875ms
ECDSA 521 bit      24062500ms   612812500ms     1183984375ms

powm       2968750ms 7890625ms 21484375ms

random     468750ms 312500ms

--Multipart=_Wed__4_Sep_2013_21_51_52_+0900_kNe/DZIFXrepPVZU--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130904215152.13dbc6edba2cef363779a3e9>