chiark / gitweb /
Preprocess the assembler files.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 18 May 2016 09:29:03 +0000 (10:29 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 21 May 2016 16:17:24 +0000 (17:17 +0100)
commit1a0c09c4d4ed8a4a1a1679f793431cc4f5c24c80
tree15d00a5fcd6f574baa5d00e34bc37a4fbd834324
parentff1f7e22126144d898d5ef5e75aaaa1aeb697c4c
Preprocess the assembler files.

  * Rename the `*.s' files to `*.S'.

  * Create a new header `base/asm-common.h' containing useful
    definitions, particularly for dealing with the peculiarities of
    shared library code.

  * Convert the assembler files to use the new macros.

  * Convert the assembler files to use `//' for comments rather than
    `#' (as currently).  This is a bit annoying, but `#' is wanted by
    the preprocessor, and `/* ... */' doesn't work in Emacs's
    `asm-mode'.

The reason for doing all of this is because the C preprocessor will let
me do things like inventing symbolic names for registers, which will be
handy later when I add support for AMD64 processors, because most of the
code will be identical between 32- and 64-bit machines.

This change has the side-effect that the AESNI implementation no longer
uses PIC-ish means to find things when it doesn't need to.
base/Makefile.am
base/asm-common.h [new file with mode: 0644]
symm/Makefile.am
symm/chacha-x86-sse2.S [new file with mode: 0644]
symm/chacha-x86-sse2.s [deleted file]
symm/rijndael-x86-aesni.S [new file with mode: 0644]
symm/rijndael-x86-aesni.s [deleted file]
symm/salsa20-x86-sse2.S [new file with mode: 0644]
symm/salsa20-x86-sse2.s [deleted file]