Home
last modified time | relevance | path

Searched refs:a (Results 1 – 6 of 6) sorted by relevance

/hal_telink-3.6.0-3.5.0-3.4.0/tlsr9/ble/common/
Dutility.h21 #define abs(a) (((a)>0)?((a)):(-(a))) argument
27 #define min(a,b) ((a) < (b) ? (a) : (b)) argument
31 #define max(a,b) ((a) > (b) ? (a): (b)) argument
35 #define min2(a,b) ((a) < (b) ? (a) : (b)) argument
39 #define min3(a,b,c) min2(min2(a, b), c) argument
43 #define max2(a,b) ((a) > (b) ? (a): (b)) argument
47 #define max3(a,b,c) max2(max2(a, b), c) argument
76 #define MAKE_U24(a,b,c) ((unsigned int)(((a) << 16) | ((b) << 8) | (c))) argument
77 #define MAKE_U32(a,b,c,d) ((unsigned int)(((a) << 24) | ((b) << 16) | ((c) << 8) | (d))) argument
98 #define SORT2(a, b, T) do { if ((a) > (b)) SWAP((a), (b), T); } while (0) argument
[all …]
Dstatic_assert.h36 #define STATIC_ASSERT_INT_DIV(a, b) STATIC_ASSERT((a) / (b) * (b) == (a)) argument
/hal_telink-3.6.0-3.5.0-3.4.0/tlsr9/drivers/B91/
Dpke.c36 unsigned int valid_bits_get(const unsigned int *a, unsigned int wordLen) in valid_bits_get() argument
48 if (a[i - 1]) in valid_bits_get()
61 if (a[i - 1] & (0x1 << (j - 1))) in valid_bits_get()
76 unsigned int valid_words_get(unsigned int *a, unsigned int max_words) in valid_words_get() argument
82 if (a[i - 1]) in valid_words_get()
99 signed int big_integer_compare(unsigned int *a, unsigned int aWordLen, unsigned int *b, unsigned in… in big_integer_compare() argument
103 aWordLen = valid_words_get(a, aWordLen); in big_integer_compare()
113 if(a[i] > b[i]) in big_integer_compare()
115 if(a[i] < b[i]) in big_integer_compare()
130 void sub_u32(unsigned int *a, unsigned int *b, unsigned int *c, unsigned int wordLen) in sub_u32() argument
[all …]
Dpke.h38 #define reg_pke_a_ram(a) ((volatile unsigned long *)(PKE_BASE+0x0400+(a)*(0x24))) argument
251 signed int big_integer_compare(unsigned int *a, unsigned int aWordLen, unsigned int *b, unsigned in…
261 void sub_u32(unsigned int *a, unsigned int *b, unsigned int *c, unsigned int wordLen);
273 unsigned int div2n_u32(unsigned int a[], signed int aWordLen, unsigned int n);
303 unsigned char pke_mod_mul(const unsigned int *modulus, const unsigned int *a, const unsigned int *b,
315 …unsigned char pke_mod_inv(const unsigned int *modulus, const unsigned int *a, unsigned int *ainv, …
327 unsigned char pke_mod_add(const unsigned int *modulus, const unsigned int *a, const unsigned int *b,
339 unsigned char pke_mod_sub(const unsigned int *modulus, const unsigned int *a, const unsigned int *b,
353 unsigned char pke_mod(unsigned int *a, unsigned int aWordLen, unsigned int *b, unsigned int *b_h, u…
Dsys.h70 #define REG_ADDR8(a) (*(volatile unsigned char*)(REG_RW_BASE_ADDR | (a))) argument
71 #define REG_ADDR16(a) (*(volatile unsigned short*)(REG_RW_BASE_ADDR | (a))) argument
72 #define REG_ADDR32(a) (*(volatile unsigned long*)(REG_RW_BASE_ADDR | (a))) argument
/hal_telink-3.6.0-3.5.0-3.4.0/tlsr9/
DCMakeLists.txt67 zephyr_link_libraries(${CMAKE_CURRENT_SOURCE_DIR}/ble/proj_lib/lib/liblt_9518_zephyr.a)
69 zephyr_link_libraries(${CMAKE_CURRENT_SOURCE_DIR}/ble/proj_lib/lib/liblt_9518.a)