x86_64 assembly pack: tolerate spaces in source directory name.
[openssl.git] / crypto / aes / asm / bsaes-x86_64.pl
index d2c3978b962e451f0e901f0e578138813c5ef08c..6b14a517dc58a96ee2ceda27f08dc66f44fa1b9c 100644 (file)
@@ -1,4 +1,11 @@
-#!/usr/bin/env perl
+#! /usr/bin/env perl
+# Copyright 2011-2016 The OpenSSL Project Authors. All Rights Reserved.
+#
+# Licensed under the OpenSSL license (the "License").  You may not use
+# this file except in compliance with the License.  You can obtain a copy
+# in the file LICENSE in the source distribution or at
+# https://www.openssl.org/source/license.html
+
 
 ###################################################################
 ### AES-128 [originally in CTR mode]                           ###
@@ -40,6 +47,7 @@
 # Core 2       9.30            8.69            +7%
 # Nehalem(**)  7.63            6.88            +11%
 # Atom         17.1            16.4            +4%
+# Silvermont   -               12.9
 #
 # (*)  Comparison is not completely fair, because "this" is ECB,
 #      i.e. no extra processing such as counter values calculation
@@ -78,6 +86,7 @@
 # Core 2       9.98
 # Nehalem      7.80
 # Atom         17.9
+# Silvermont   14.0
 #
 # November 2011.
 #
@@ -97,7 +106,7 @@ $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
 ( $xlate="${dir}../../perlasm/x86_64-xlate.pl" and -f $xlate) or
 die "can't locate x86_64-xlate.pl";
 
-open OUT,"| \"$^X\" $xlate $flavour $output";
+open OUT,"| \"$^X\" \"$xlate\" $flavour \"$output\"";
 *STDOUT=*OUT;
 
 my ($inp,$out,$len,$key,$ivp)=("%rdi","%rsi","%rdx","%rcx");