Add check for OPTIMIZED_SALSA flag
authorBalthazar <balthazar@yandex.ru>
Sun, 12 Jan 2014 01:15:19 +0000 (01:15 +0000)
committerBalthazar <balthazar@yandex.ru>
Sun, 12 Jan 2014 01:15:19 +0000 (01:15 +0000)
src/scrypt-arm.S
src/scrypt-x86.S
src/scrypt-x86_64.S

index 12d94b0..143eb3a 100644 (file)
@@ -8,7 +8,7 @@
  */
 
 
-#if defined(__arm__) && defined(__APCS_32__)
+#if defined(OPTIMIZED_SALSA) &&  defined(__arm__) && defined(__APCS_32__)
 
 #if defined(__linux__) && defined(__ELF__)
 .section .note.GNU-stack,"",%progbits
index 0e97e36..c1d2cef 100644 (file)
@@ -22,7 +22,7 @@
 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 # SUCH DAMAGE.
 
-#if defined(__i386__)
+#if defined(OPTIMIZED_SALSA) &&  defined(__i386__)
 
 #if defined(__linux__) && defined(__ELF__)
 .section .note.GNU-stack,"",%progbits
index 9d894f2..3036d03 100644 (file)
@@ -23,7 +23,7 @@
 # SUCH DAMAGE.
 
 
-#if defined(__x86_64__)
+#if defined(OPTIMIZED_SALSA) && defined(__x86_64__)
 
 #if defined(__linux__) && defined(__ELF__)
        .section .note.GNU-stack,"",%progbits