libc/tls: Supports up to 64 elements

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi
2022-02-19 09:39:30 +08:00
committed by Xiang Xiao
parent 037d5038f9
commit 18227cbeff
4 changed files with 6 additions and 3 deletions
+3 -1
View File
@@ -67,8 +67,10 @@
*/
#if CONFIG_TLS_NELEM > 0
# if CONFIG_TLS_NELEM > 32
# if CONFIG_TLS_NELEM > 64
# error Too many TLS elements
# elif CONFIG_TLS_NELEM > 32
typedef uint64_t tls_ndxset_t;
# elif CONFIG_TLS_NELEM > 16
typedef uint32_t tls_ndxset_t;
# elif CONFIG_TLS_NELEM > 8