mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-04-29 16:03:22 +02:00
Make some improvements to user_settings_asm.h.
For the CMake and autotools flows, enabling user_settings.h will define the macro WOLFSSL_USER_SETTINGS_ASM. This will cause the generated user_settings_asm.h to be included in the .S assembly files. If the user is building without autotools or CMake, these files will include user_settings.h directly, unless WOLFSSL_USER_SETTINGS_ASM is defined.
This commit is contained in:
@@ -20,8 +20,23 @@
|
||||
*/
|
||||
|
||||
#ifdef WOLFSSL_USER_SETTINGS
|
||||
#ifdef WOLFSSL_USER_SETTINGS_ASM
|
||||
/*
|
||||
* user_settings_asm.h is a file generated by the script user_settings_asm.sh.
|
||||
* The script takes in a user_settings.h and produces user_settings_asm.h, which
|
||||
* is a stripped down version of user_settings.h containing only preprocessor
|
||||
* directives. This makes the header safe to include in assembly (.S) files.
|
||||
*/
|
||||
#include "user_settings_asm.h"
|
||||
#endif
|
||||
#else
|
||||
/*
|
||||
* Note: if user_settings.h contains any C code (e.g. a typedef or function
|
||||
* prototype), including it here in an assembly (.S) file will cause an
|
||||
* assembler failure. See user_settings_asm.h above.
|
||||
*/
|
||||
#include "user_settings.h"
|
||||
#endif /* WOLFSSL_USER_SETTINGS_ASM */
|
||||
#endif /* WOLFSSL_USER_SETTINGS */
|
||||
|
||||
#ifndef HAVE_INTEL_AVX1
|
||||
#define HAVE_INTEL_AVX1
|
||||
|
||||
@@ -18,10 +18,24 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
#ifdef WOLFSSL_USER_SETTINGS
|
||||
#ifdef WOLFSSL_USER_SETTINGS_ASM
|
||||
/*
|
||||
* user_settings_asm.h is a file generated by the script user_settings_asm.sh.
|
||||
* The script takes in a user_settings.h and produces user_settings_asm.h, which
|
||||
* is a stripped down version of user_settings.h containing only preprocessor
|
||||
* directives. This makes the header safe to include in assembly (.S) files.
|
||||
*/
|
||||
#include "user_settings_asm.h"
|
||||
#endif
|
||||
#else
|
||||
/*
|
||||
* Note: if user_settings.h contains any C code (e.g. a typedef or function
|
||||
* prototype), including it here in an assembly (.S) file will cause an
|
||||
* assembler failure. See user_settings_asm.h above.
|
||||
*/
|
||||
#include "user_settings.h"
|
||||
#endif /* WOLFSSL_USER_SETTINGS_ASM */
|
||||
#endif /* WOLFSSL_USER_SETTINGS */
|
||||
|
||||
#ifndef HAVE_INTEL_AVX1
|
||||
#define HAVE_INTEL_AVX1
|
||||
|
||||
@@ -20,8 +20,23 @@
|
||||
*/
|
||||
|
||||
#ifdef WOLFSSL_USER_SETTINGS
|
||||
#ifdef WOLFSSL_USER_SETTINGS_ASM
|
||||
/*
|
||||
* user_settings_asm.h is a file generated by the script user_settings_asm.sh.
|
||||
* The script takes in a user_settings.h and produces user_settings_asm.h, which
|
||||
* is a stripped down version of user_settings.h containing only preprocessor
|
||||
* directives. This makes the header safe to include in assembly (.S) files.
|
||||
*/
|
||||
#include "user_settings_asm.h"
|
||||
#endif
|
||||
#else
|
||||
/*
|
||||
* Note: if user_settings.h contains any C code (e.g. a typedef or function
|
||||
* prototype), including it here in an assembly (.S) file will cause an
|
||||
* assembler failure. See user_settings_asm.h above.
|
||||
*/
|
||||
#include "user_settings.h"
|
||||
#endif /* WOLFSSL_USER_SETTINGS_ASM */
|
||||
#endif /* WOLFSSL_USER_SETTINGS */
|
||||
|
||||
#ifndef HAVE_INTEL_AVX1
|
||||
#define HAVE_INTEL_AVX1
|
||||
|
||||
@@ -20,8 +20,23 @@
|
||||
*/
|
||||
|
||||
#ifdef WOLFSSL_USER_SETTINGS
|
||||
#ifdef WOLFSSL_USER_SETTINGS_ASM
|
||||
/*
|
||||
* user_settings_asm.h is a file generated by the script user_settings_asm.sh.
|
||||
* The script takes in a user_settings.h and produces user_settings_asm.h, which
|
||||
* is a stripped down version of user_settings.h containing only preprocessor
|
||||
* directives. This makes the header safe to include in assembly (.S) files.
|
||||
*/
|
||||
#include "user_settings_asm.h"
|
||||
#endif
|
||||
#else
|
||||
/*
|
||||
* Note: if user_settings.h contains any C code (e.g. a typedef or function
|
||||
* prototype), including it here in an assembly (.S) file will cause an
|
||||
* assembler failure. See user_settings_asm.h above.
|
||||
*/
|
||||
#include "user_settings.h"
|
||||
#endif /* WOLFSSL_USER_SETTINGS_ASM */
|
||||
#endif /* WOLFSSL_USER_SETTINGS */
|
||||
|
||||
#ifndef HAVE_INTEL_AVX1
|
||||
#define HAVE_INTEL_AVX1
|
||||
|
||||
@@ -20,8 +20,23 @@
|
||||
*/
|
||||
|
||||
#ifdef WOLFSSL_USER_SETTINGS
|
||||
#ifdef WOLFSSL_USER_SETTINGS_ASM
|
||||
/*
|
||||
* user_settings_asm.h is a file generated by the script user_settings_asm.sh.
|
||||
* The script takes in a user_settings.h and produces user_settings_asm.h, which
|
||||
* is a stripped down version of user_settings.h containing only preprocessor
|
||||
* directives. This makes the header safe to include in assembly (.S) files.
|
||||
*/
|
||||
#include "user_settings_asm.h"
|
||||
#endif
|
||||
#else
|
||||
/*
|
||||
* Note: if user_settings.h contains any C code (e.g. a typedef or function
|
||||
* prototype), including it here in an assembly (.S) file will cause an
|
||||
* assembler failure. See user_settings_asm.h above.
|
||||
*/
|
||||
#include "user_settings.h"
|
||||
#endif /* WOLFSSL_USER_SETTINGS_ASM */
|
||||
#endif /* WOLFSSL_USER_SETTINGS */
|
||||
|
||||
#ifndef HAVE_INTEL_AVX1
|
||||
#define HAVE_INTEL_AVX1
|
||||
|
||||
@@ -20,8 +20,23 @@
|
||||
*/
|
||||
|
||||
#ifdef WOLFSSL_USER_SETTINGS
|
||||
#ifdef WOLFSSL_USER_SETTINGS_ASM
|
||||
/*
|
||||
* user_settings_asm.h is a file generated by the script user_settings_asm.sh.
|
||||
* The script takes in a user_settings.h and produces user_settings_asm.h, which
|
||||
* is a stripped down version of user_settings.h containing only preprocessor
|
||||
* directives. This makes the header safe to include in assembly (.S) files.
|
||||
*/
|
||||
#include "user_settings_asm.h"
|
||||
#endif
|
||||
#else
|
||||
/*
|
||||
* Note: if user_settings.h contains any C code (e.g. a typedef or function
|
||||
* prototype), including it here in an assembly (.S) file will cause an
|
||||
* assembler failure. See user_settings_asm.h above.
|
||||
*/
|
||||
#include "user_settings.h"
|
||||
#endif /* WOLFSSL_USER_SETTINGS_ASM */
|
||||
#endif /* WOLFSSL_USER_SETTINGS */
|
||||
|
||||
#ifndef HAVE_INTEL_AVX1
|
||||
#define HAVE_INTEL_AVX1
|
||||
|
||||
@@ -20,8 +20,23 @@
|
||||
*/
|
||||
|
||||
#ifdef WOLFSSL_USER_SETTINGS
|
||||
#ifdef WOLFSSL_USER_SETTINGS_ASM
|
||||
/*
|
||||
* user_settings_asm.h is a file generated by the script user_settings_asm.sh.
|
||||
* The script takes in a user_settings.h and produces user_settings_asm.h, which
|
||||
* is a stripped down version of user_settings.h containing only preprocessor
|
||||
* directives. This makes the header safe to include in assembly (.S) files.
|
||||
*/
|
||||
#include "user_settings_asm.h"
|
||||
#endif
|
||||
#else
|
||||
/*
|
||||
* Note: if user_settings.h contains any C code (e.g. a typedef or function
|
||||
* prototype), including it here in an assembly (.S) file will cause an
|
||||
* assembler failure. See user_settings_asm.h above.
|
||||
*/
|
||||
#include "user_settings.h"
|
||||
#endif /* WOLFSSL_USER_SETTINGS_ASM */
|
||||
#endif /* WOLFSSL_USER_SETTINGS */
|
||||
|
||||
#ifndef HAVE_INTEL_AVX1
|
||||
#define HAVE_INTEL_AVX1
|
||||
|
||||
@@ -20,8 +20,23 @@
|
||||
*/
|
||||
|
||||
#ifdef WOLFSSL_USER_SETTINGS
|
||||
#ifdef WOLFSSL_USER_SETTINGS_ASM
|
||||
/*
|
||||
* user_settings_asm.h is a file generated by the script user_settings_asm.sh.
|
||||
* The script takes in a user_settings.h and produces user_settings_asm.h, which
|
||||
* is a stripped down version of user_settings.h containing only preprocessor
|
||||
* directives. This makes the header safe to include in assembly (.S) files.
|
||||
*/
|
||||
#include "user_settings_asm.h"
|
||||
#endif
|
||||
#else
|
||||
/*
|
||||
* Note: if user_settings.h contains any C code (e.g. a typedef or function
|
||||
* prototype), including it here in an assembly (.S) file will cause an
|
||||
* assembler failure. See user_settings_asm.h above.
|
||||
*/
|
||||
#include "user_settings.h"
|
||||
#endif /* WOLFSSL_USER_SETTINGS_ASM */
|
||||
#endif /* WOLFSSL_USER_SETTINGS */
|
||||
|
||||
#ifndef HAVE_INTEL_AVX1
|
||||
#define HAVE_INTEL_AVX1
|
||||
|
||||
Reference in New Issue
Block a user