summaryrefslogtreecommitdiff
path: root/src/hwf-arm.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2013-12-12 18:53:39 +0100
committerWerner Koch <wk@gnupg.org>2013-12-12 18:53:39 +0100
commit4ae77322b681a13da62d01274bcab25be2af12d0 (patch)
tree4b3a2e31cb86fae492800e58cce8138c91bc4bd3 /src/hwf-arm.c
parent3b30e9840d4b351c4de73b126e561154cb7df4cc (diff)
downloadlibgcrypt-4ae77322b681a13da62d01274bcab25be2af12d0.tar.gz
Move list of hardware features to hwfeatures.c.
* src/global.c (hwflist, disabled_hw_features): Move to .. * src/hwfeatures.c: here. (_gcry_disable_hw_feature): New. (_gcry_enum_hw_features): New. (_gcry_detect_hw_features): Remove arg DISABLED_FEATURES. * src/global.c (print_config, _gcry_vcontrol, global_init): Adjust accordingly. -- It is better to keep the hardware feature infor at one place. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'src/hwf-arm.c')
-rw-r--r--src/hwf-arm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hwf-arm.c b/src/hwf-arm.c
index 9ab4cd0f..5c99a1dd 100644
--- a/src/hwf-arm.c
+++ b/src/hwf-arm.c
@@ -39,7 +39,8 @@
#define AT_HWCAP 16
#define HWCAP_NEON 4096
-static int get_hwcap(unsigned int *hwcap)
+static int
+get_hwcap(unsigned int *hwcap)
{
struct { unsigned int a_type; unsigned int a_val; } auxv;
FILE *f;
@@ -76,7 +77,8 @@ static int get_hwcap(unsigned int *hwcap)
return err;
}
-static unsigned int detect_arm_at_hwcap(void)
+static unsigned int
+detect_arm_at_hwcap(void)
{
unsigned int hwcap;
unsigned int features = 0;