chiark / gitweb /
**/*.S: Arrange assembler preambles consistently.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 2 Mar 2019 13:11:25 +0000 (13:11 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 8 Sep 2019 10:37:37 +0000 (11:37 +0100)
math/mpx-mul4-amd64-sse2.S
math/mpx-mul4-x86-sse2.S
symm/chacha-arm-neon.S
symm/chacha-arm64.S
symm/chacha-x86ish-sse2.S
symm/rijndael-arm-crypto.S
symm/rijndael-arm64-crypto.S
symm/rijndael-x86ish-aesni.S
symm/salsa20-arm-neon.S
symm/salsa20-arm64.S
symm/salsa20-x86ish-sse2.S

index 29939c1c3457a05036feabe4146e013d3edc3868..03e466c78db969f525cd5069293ab94b4eb09483 100644 (file)
 /// MA 02111-1307, USA.
 
 ///--------------------------------------------------------------------------
-/// External definitions.
+/// Preliminaries.
 
 #include "config.h"
 #include "asm-common.h"
 
-///--------------------------------------------------------------------------
-/// Prologue.
-
        .arch   pentium4
+
        .text
 
 ///--------------------------------------------------------------------------
index 11aadc9500fb6f11aa9eb7f8d159962b4328aee4..5265a64f13ac6b51eb3edba6d593c63051423ccc 100644 (file)
 /// MA 02111-1307, USA.
 
 ///--------------------------------------------------------------------------
-/// External definitions.
+/// Preliminaries.
 
 #include "config.h"
 #include "asm-common.h"
 
-///--------------------------------------------------------------------------
-/// Prologue.
-
        .arch   pentium4
+
        .text
 
 ///--------------------------------------------------------------------------
index af53cfd38dff936a81fef2759659bd366a990873..a900db762c2dc245772e29f8cbebd16018b0770f 100644 (file)
 /// MA 02111-1307, USA.
 
 ///--------------------------------------------------------------------------
-/// External definitions.
+/// Preliminaries.
 
 #include "config.h"
 #include "asm-common.h"
 
-///--------------------------------------------------------------------------
-/// Main.code.
-
        .arch   armv7-a
        .fpu    neon
+
        .text
 
+///--------------------------------------------------------------------------
+/// Main.code.
+
 FUNC(chacha_core_arm_neon)
 
        // Arguments are in registers.
index a423e9e53046d99cc5de7c3ce521b6ac03d64f0a..61ac51a1a5329888ac4dea55b392d92b8c851c73 100644 (file)
 /// MA 02111-1307, USA.
 
 ///--------------------------------------------------------------------------
-/// External definitions.
+/// Preliminaries.
 
 #include "config.h"
 #include "asm-common.h"
 
-///--------------------------------------------------------------------------
-/// Main.code.
-
        .arch   armv8-a
+
        .text
 
+///--------------------------------------------------------------------------
+/// Main.code.
+
 FUNC(chacha_core_arm64)
 
        // Arguments are in registers.
index 77047ebe3e5e6fa04e02c02e5d5930f2fd720f88..3b0096337c7aac6b10fc18ae7369d5f876cff2e5 100644 (file)
 /// MA 02111-1307, USA.
 
 ///--------------------------------------------------------------------------
-/// External definitions.
+/// Preliminaries.
 
 #include "config.h"
 #include "asm-common.h"
 
+       .text
+
 ///--------------------------------------------------------------------------
 /// Main code.
 
-       .text
-
 FUNC(chacha_core_x86ish_avx)
        .arch   .avx
        vzeroupper
index 8a5484c82e143096ffc1836e2e77a79647071276..1df81d97785bfc9cdddc46df007e5482deab260b 100644 (file)
 /// MA 02111-1307, USA.
 
 ///--------------------------------------------------------------------------
-/// External definitions.
+/// Preliminaries.
 
 #include "config.h"
 #include "asm-common.h"
 
+       .arch   armv8-a
+       .fpu    crypto-neon-fp-armv8
+
        .extern F(abort)
        .extern F(rijndael_rcon)
 
+       .text
+
 ///--------------------------------------------------------------------------
 /// Main code.
 
-       .arch   armv8-a
-       .fpu    crypto-neon-fp-armv8
-
 /// The ARM crypto extension implements a little-endian version of AES
 /// (though the manual doesn't actually spell this out and you have to
 /// experiment), but Catacomb's internal interface presents as big-endian so
index 8739c193f0058e326c60be3b56ee497af0eeb267..f2d3f45971f04567262241aef5d5794f28227a07 100644 (file)
 /// MA 02111-1307, USA.
 
 ///--------------------------------------------------------------------------
-/// External definitions.
+/// Preliminaries.
 
 #include "config.h"
 #include "asm-common.h"
 
+       .arch   armv8-a+crypto
+
        .extern F(abort)
        .extern F(rijndael_rcon)
 
+       .text
+
 ///--------------------------------------------------------------------------
 /// Main code.
 
-       .arch   armv8-a+crypto
-
 /// The ARM crypto extension implements a little-endian version of AES
 /// (though the manual doesn't actually spell this out and you have to
 /// experiment), but Catacomb's internal interface presents as big-endian so
index dc80f4dbdb6fa2c18da94893b7bd941be6d9821d..6d9b3b2272852e5de9be70fdd3619363dea1a110 100644 (file)
 /// MA 02111-1307, USA.
 
 ///--------------------------------------------------------------------------
-/// External definitions.
+/// Preliminaries.
 
 #include "config.h"
 #include "asm-common.h"
 
+       .arch   .aes
+
        .extern F(abort)
        .extern F(rijndael_rcon)
 
+       .text
+
 ///--------------------------------------------------------------------------
 /// Main code.
 
-       .arch   .aes
-       .text
-
 /// The AESNI instructions implement a little-endian version of AES, but
 /// Catacomb's internal interface presents as big-endian so as to work better
 /// with things like GCM.  We therefore maintain the round keys in
index 80ed8f067bc70c23da282ef3510da5cab496d7b2..3b6beb061a1311e1f6b01f8053f82af8b201d54a 100644 (file)
 /// MA 02111-1307, USA.
 
 ///--------------------------------------------------------------------------
-/// External definitions.
+/// Preliminaries.
 
 #include "config.h"
 #include "asm-common.h"
 
-///--------------------------------------------------------------------------
-/// Main.code.
-
        .arch   armv7-a
        .fpu    neon
+
        .text
 
+///--------------------------------------------------------------------------
+/// Main.code.
+
 FUNC(salsa20_core_arm_neon)
 
        // Arguments are in registers.
index 821548e1958457b3298587dffb11a8048c6c8d74..864c63c1096abd3cc9c8d49ec06caf9f4988db8d 100644 (file)
 /// MA 02111-1307, USA.
 
 ///--------------------------------------------------------------------------
-/// External definitions.
+/// Preliminaries.
 
 #include "config.h"
 #include "asm-common.h"
 
-///--------------------------------------------------------------------------
-/// Main.code.
-
        .arch   armv8-a
+
        .text
 
+///--------------------------------------------------------------------------
+/// Main.code.
+
 FUNC(salsa20_core_arm64)
 
        // Arguments are in registers.
index 06ba3d2c70463c2d95d67f8db244c1a99a344fdb..56746e56f198a1921c801b3b17c3532ae418f0c6 100644 (file)
 /// MA 02111-1307, USA.
 
 ///--------------------------------------------------------------------------
-/// External definitions.
+/// Preliminaries.
 
 #include "config.h"
 #include "asm-common.h"
 
+       .text
+
 ///--------------------------------------------------------------------------
 /// Main code.
 
-       .text
-
 FUNC(salsa20_core_x86ish_avx)
        .arch   .avx
        vzeroupper