git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eal: change power intrinsics API
[dpdk.git]
/
lib
/
librte_eal
/
common
/
rte_random.c
diff --git
a/lib/librte_eal/common/rte_random.c
b/lib/librte_eal/common/rte_random.c
index
b7a089a
..
ce21c22
100644
(file)
--- a/
lib/librte_eal/common/rte_random.c
+++ b/
lib/librte_eal/common/rte_random.c
@@
-2,7
+2,7
@@
* Copyright(c) 2019 Ericsson AB
*/
* Copyright(c) 2019 Ericsson AB
*/
-#ifdef
RTE_MACHINE_CPUFLAG_RDSEED
+#ifdef
__RDSEED__
#include <x86intrin.h>
#endif
#include <stdlib.h>
#include <x86intrin.h>
#endif
#include <stdlib.h>
@@
-122,7
+122,7
@@
struct rte_rand_state *__rte_rand_get_state(void)
lcore_id = rte_lcore_id();
if (unlikely(lcore_id == LCORE_ID_ANY))
lcore_id = rte_lcore_id();
if (unlikely(lcore_id == LCORE_ID_ANY))
- lcore_id = rte_get_ma
ster
_lcore();
+ lcore_id = rte_get_ma
in
_lcore();
return &rand_states[lcore_id];
}
return &rand_states[lcore_id];
}
@@
-188,7
+188,7
@@
__rte_random_initial_seed(void)
if (ge_rc == 0)
return ge_seed;
#endif
if (ge_rc == 0)
return ge_seed;
#endif
-#ifdef
RTE_MACHINE_CPUFLAG_RDSEED
+#ifdef
__RDSEED__
unsigned int rdseed_low;
unsigned int rdseed_high;
unsigned int rdseed_low;
unsigned int rdseed_high;