diff options
author | Niels Möller <nisse@lysator.liu.se> | 2015-01-23 21:01:30 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2015-01-23 21:01:30 +0100 |
commit | dff9f68c9ac50ac1d579ed47c3a8fc6cde805dea (patch) | |
tree | 7c71b754beb0244cd9e9943dfc856cdff5780ce5 /fat-arm.c | |
parent | b686476f1c413ac01d107240ce4726ec764a521c (diff) | |
download | nettle-dff9f68c9ac50ac1d579ed47c3a8fc6cde805dea.tar.gz |
Made fat initialization more robust.
Diffstat (limited to 'fat-arm.c')
-rw-r--r-- | fat-arm.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -164,13 +164,9 @@ DECLARE_FAT_FUNC_VAR(umac_nh_n, umac_nh_n_func, neon); static void CONSTRUCTOR fat_init (void) { - static volatile int initialized = 0; struct arm_features features; int verbose; - if (initialized) - return; - get_arm_features (&features); verbose = getenv (ENV_VERBOSE) != NULL; @@ -213,8 +209,6 @@ fat_init (void) _nettle_umac_nh_vec = _nettle_umac_nh_c; _nettle_umac_nh_n_vec = _nettle_umac_nh_n_c; } - /* FIXME: Needs memory barrier, to enforce store ordering. */ - initialized = 1; } DEFINE_FAT_FUNC(_nettle_aes_encrypt, void, |