/lk-master/external/platform/pico/rp2_common/pico_float/ |
A D | float_math.c | 34 #define FUNPACK(x,e,m) e=((x)>>23)&0xff,m=((x)&0x007fffff)|0x00800000 argument 35 #define FUNPACKS(x,s,e,m) s=((x)>>31),FUNPACK((x),(e),(m)) argument 46 #define check_nan_f1(x) if (fisnan((x))) return (x) argument 241 u=(1.0f-x)*(1.0f+x); in WRAPPER_FUNC() 249 u=(1.0f-x)*(1.0f+x); in WRAPPER_FUNC() 292 if(x>0) return (float)log(sqrt((double)x*(double)x+1.0)+(double)x); in WRAPPER_FUNC() 299 if(fisneg(x)) x=fneg(x); in WRAPPER_FUNC() 339 if(y<0) x=1.0f/x,y=-y; in fpowint_1() 463 return sqrtf(x*x+y*y); in WRAPPER_FUNC() 473 x=fldexp(x,-e*3); in WRAPPER_FUNC() [all …]
|
/lk-master/external/platform/pico/rp2_common/pico_double/ |
A D | double_math.c | 37 #define DUNPACKS(x,s,e,m) s=((x)>>63),DUNPACK((x),(e),(m)) argument 49 #define check_nan_d1(x) if (disnan((x))) return (x) argument 244 u=(1-x)*(1+x); in WRAPPER_FUNC() 252 u=(1-x)*(1+x); in WRAPPER_FUNC() 295 if(x>0) return log(sqrt(x*x+1)+x); in WRAPPER_FUNC() 296 else return dneg(log(sqrt(x*x+1)-x)); in WRAPPER_FUNC() 302 if(disneg(x)) x=dneg(x); in WRAPPER_FUNC() 305 return log(sqrt((x-1)*(x+1))+x); in WRAPPER_FUNC() 381 if(y<0) x=1/x,y=-y; 507 return sqrt(x*x+y*y); [all …]
|
/lk-master/external/lib/lwip/include/lwip/ |
A D | def.h | 43 #define LWIP_MAX(x , y) (((x) > (y)) ? (x) : (y)) argument 44 #define LWIP_MIN(x , y) (((x) < (y)) ? (x) : (y)) argument 77 #define htons(x) lwip_htons(x) argument 84 #define lwip_htons(x) (x) argument 85 #define lwip_ntohs(x) (x) argument 86 #define lwip_htonl(x) (x) argument 87 #define lwip_ntohl(x) (x) argument 88 #define PP_HTONS(x) (x) argument 89 #define PP_NTOHS(x) (x) argument 90 #define PP_HTONL(x) (x) argument [all …]
|
A D | stats.h | 153 #define STATS_INC(x) ++lwip_stats.x argument 154 #define STATS_DEC(x) --lwip_stats.x argument 168 #define TCP_STATS_INC(x) STATS_INC(x) argument 176 #define UDP_STATS_INC(x) STATS_INC(x) argument 184 #define ICMP_STATS_INC(x) STATS_INC(x) argument 192 #define IGMP_STATS_INC(x) STATS_INC(x) argument 200 #define IP_STATS_INC(x) STATS_INC(x) argument 208 #define IPFRAG_STATS_INC(x) STATS_INC(x) argument 216 #define ETHARP_STATS_INC(x) STATS_INC(x) argument 224 #define LINK_STATS_INC(x) STATS_INC(x) argument [all …]
|
/lk-master/external/platform/lpc15xx/lpcopen/lpc_chip_15xx/inc/usbd/ |
A D | usbd_hid.h | 364 #define HID_Input(x) 0x81,x argument 401 #define HID_LogicalMinS(x) 0x16,(x&0xFF),((x>>8)&0xFF) argument 402 #define HID_LogicalMinL(x) 0x17,(x&0xFF),((x>>8)&0xFF),((x>>16)&0xFF),((x>>24)&0xFF) argument 404 #define HID_LogicalMaxS(x) 0x26,(x&0xFF),((x>>8)&0xFF) argument 405 #define HID_LogicalMaxL(x) 0x27,(x&0xFF),((x>>8)&0xFF),((x>>16)&0xFF),((x>>24)&0xFF) argument 407 #define HID_PhysicalMinS(x) 0x36,(x&0xFF),((x>>8)&0xFF) argument 408 #define HID_PhysicalMinL(x) 0x37,(x&0xFF),((x>>8)&0xFF),((x>>16)&0xFF),((x>>24)&0xFF) argument 410 #define HID_PhysicalMaxS(x) 0x46,(x&0xFF),((x>>8)&0xFF) argument 411 #define HID_PhysicalMaxL(x) 0x47,(x&0xFF),((x>>8)&0xFF),((x>>16)&0xFF),((x>>24)&0xFF) argument 414 #define HID_UnitS(x) 0x66,(x&0xFF),((x>>8)&0xFF) argument [all …]
|
/lk-master/external/lib/fdt/include/ |
A D | libfdt_env.h | 29 #define EXTRACT_BYTE(x, n) ((unsigned long long)((uint8_t *)&x)[n]) argument 30 #define CPU_TO_FDT16(x) ((EXTRACT_BYTE(x, 0) << 8) | EXTRACT_BYTE(x, 1)) argument 31 #define CPU_TO_FDT32(x) ((EXTRACT_BYTE(x, 0) << 24) | (EXTRACT_BYTE(x, 1) << 16) | \ argument 32 (EXTRACT_BYTE(x, 2) << 8) | EXTRACT_BYTE(x, 3)) 33 #define CPU_TO_FDT64(x) ((EXTRACT_BYTE(x, 0) << 56) | (EXTRACT_BYTE(x, 1) << 48) | \ argument 34 (EXTRACT_BYTE(x, 2) << 40) | (EXTRACT_BYTE(x, 3) << 32) | \ 35 (EXTRACT_BYTE(x, 4) << 24) | (EXTRACT_BYTE(x, 5) << 16) | \ 36 (EXTRACT_BYTE(x, 6) << 8) | EXTRACT_BYTE(x, 7)) 44 return (FDT_FORCE fdt16_t)CPU_TO_FDT16(x); in cpu_to_fdt16() 53 return (FDT_FORCE fdt32_t)CPU_TO_FDT32(x); in cpu_to_fdt32() [all …]
|
/lk-master/top/include/lk/ |
A D | bits.h | 16 #define clz(x) __builtin_clz(x) argument 17 #define ctz(x) __builtin_ctz(x) argument 18 #define ffs(x) __builtin_ffs(x) argument 20 #define BIT(x, bit) ((x) & (1UL << (bit))) argument 21 #define BIT_SHIFT(x, bit) (((x) >> (bit)) & 1) argument 24 #define BIT_SET(x, bit) (((x) & (1UL << (bit))) ? 1 : 0) argument 28 #define BITMAP_WORD(x) ((x) / BITMAP_BITS_PER_WORD) argument 29 #define BITMAP_BIT_IN_WORD(x) ((x) & (BITMAP_BITS_PER_WORD - 1)) argument 32 #define BITMAP_BIT_IN_INT(x) ((x) & (BITMAP_BITS_PER_INT - 1)) argument 33 #define BITMAP_INT(x) ((x) / BITMAP_BITS_PER_INT) argument [all …]
|
A D | asm.h | 10 #define FUNCTION(x) .global x; .type x,STT_FUNC; x: argument 11 #define DATA(x) .global x; .type x,STT_OBJECT; x: argument 13 #define LOCAL_FUNCTION(x) .type x,STT_FUNC; x: argument 14 #define LOCAL_DATA(x) .type x,STT_OBJECT; x: argument 16 #define END_FUNCTION(x) .size x, . - x argument 17 #define END_DATA(x) .size x, . - x argument
|
A D | compiler.h | 17 #define likely(x) __builtin_expect(!!(x), 1) argument 18 #define unlikely(x) __builtin_expect(!!(x), 0) argument 22 #define __ALIGNED(x) __attribute__((aligned(x))) argument 25 #define __SECTION(x) __USED __attribute((section(x))) argument 35 #define __ISCONSTANT(x) __builtin_constant_p(x) argument 77 #define __NONNULL(x) __attribute((nonnull x)) argument 116 #define __ALIAS(x) __attribute__((alias(x))) argument 137 #define __OPTIMIZE(x) __attribute__((optimize(x))) argument 143 #define __THREAD_ANNOTATION(x) __attribute__((x)) argument 163 #define likely(x) (x) argument [all …]
|
/lk-master/external/lib/libm/include/ |
A D | math.h | 95 ((sizeof (x) == sizeof (float)) ? __isinff(x) \ 96 : (sizeof (x) == sizeof (double)) ? isinf(x) \ 99 ((sizeof (x) == sizeof (float)) ? __isnanf(x) \ 100 : (sizeof (x) == sizeof (double)) ? isnan(x) \ 115 #define isgreater(x, y) (!isunordered((x), (y)) && (x) > (y)) argument 116 #define isgreaterequal(x, y) (!isunordered((x), (y)) && (x) >= (y)) argument 117 #define isless(x, y) (!isunordered((x), (y)) && (x) < (y)) argument 118 #define islessequal(x, y) (!isunordered((x), (y)) && (x) <= (y)) argument 120 ((x) > (y) || (y) > (x))) 121 #define isunordered(x, y) (isnan(x) || isnan(y)) argument [all …]
|
/lk-master/external/lib/libm/ |
A D | s_atan.c | 74 atan(double x) in atan() argument 86 return x+x; /* NaN */ in atan() 91 if(huge+x>one) return x; /* raise inexact */ in atan() 95 x = fabs(x); in atan() 98 id = 0; x = (2.0*x-one)/(2.0+x); in atan() 100 id = 1; x = (x-one)/(x+one); in atan() 104 id = 2; x = (x-1.5)/(one+1.5*x); in atan() 106 id = 3; x = -1.0/x; in atan() 110 z = x*x; in atan() 115 if (id<0) return x - x*(s1+s2); in atan() [all …]
|
A D | s_scalbnf.c | 28 scalbnf (float x, int n) in scalbnf() argument 31 GET_FLOAT_WORD(ix,x); in scalbnf() 34 if ((ix&0x7fffffff)==0) return x; /* +-0 */ in scalbnf() 35 x *= two25; in scalbnf() 36 GET_FLOAT_WORD(ix,x); in scalbnf() 38 if (n< -50000) return tiny*x; /*underflow*/ in scalbnf() 40 if (k==0xff) return x+x; /* NaN or Inf */ in scalbnf() 44 {SET_FLOAT_WORD(x,(ix&0x807fffff)|(k<<23)); return x;} in scalbnf() 47 return huge*copysignf(huge,x); /*overflow*/ in scalbnf() 51 SET_FLOAT_WORD(x,(ix&0x807fffff)|(k<<23)); in scalbnf() [all …]
|
A D | e_exp.c | 111 GET_HIGH_WORD(hx,x); in __ieee754_exp() 119 GET_LOW_WORD(lx,x); in __ieee754_exp() 121 return x+x; /* NaN */ in __ieee754_exp() 131 hi = x-ln2HI[xsb]; lo=ln2LO[xsb]; k = 1-xsb-xsb; in __ieee754_exp() 133 k = (int)(invln2*x+halF[xsb]); in __ieee754_exp() 138 STRICT_ASSIGN(double, x, hi - lo); in __ieee754_exp() 141 if(huge+x>one) return one+x;/* trigger inexact */ in __ieee754_exp() 146 t = x*x; in __ieee754_exp() 151 c = x - t*(P1+t*(P2+t*(P3+t*(P4+t*P5)))); in __ieee754_exp() 152 if(k==0) return one-((x*c)/(c-2.0)-x); in __ieee754_exp() [all …]
|
A D | s_scalbn.c | 33 scalbn (double x, int n) in scalbn() argument 36 EXTRACT_WORDS(hx,lx,x); in scalbn() 39 if ((lx|(hx&0x7fffffff))==0) return x; /* +-0 */ in scalbn() 40 x *= two54; in scalbn() 41 GET_HIGH_WORD(hx,x); in scalbn() 43 if (n< -50000) return tiny*x; /*underflow*/ in scalbn() 45 if (k==0x7ff) return x+x; /* NaN or Inf */ in scalbn() 49 {SET_HIGH_WORD(x,(hx&0x800fffff)|(k<<20)); return x;} in scalbn() 53 return huge*copysign(huge,x); /*overflow*/ in scalbn() 59 SET_HIGH_WORD(x,(hx&0x800fffff)|(k<<20)); in scalbn() [all …]
|
A D | s_sinf.c | 39 sinf(float x) in sinf() argument 44 GET_FLOAT_WORD(hx,x); in sinf() 49 if (((int)x)==0) return x; /* x with inexact if x != 0 */ in sinf() 50 return __kernel_sindf(x); in sinf() 55 return __kernel_cosdf(x - s1pio2); in sinf() 57 return -__kernel_cosdf(x + s1pio2); in sinf() 59 return __kernel_sindf((hx > 0 ? s2pio2 : -s2pio2) - x); in sinf() 64 return -__kernel_cosdf(x - s3pio2); in sinf() 66 return __kernel_cosdf(x + s3pio2); in sinf() 72 else if (ix>=0x7f800000) return x-x; in sinf() [all …]
|
A D | s_cosf.c | 39 cosf(float x) in cosf() argument 44 GET_FLOAT_WORD(hx,x); in cosf() 50 return __kernel_cosdf(x); in cosf() 54 return -__kernel_cosdf(x + (hx > 0 ? -c2pio2 : c2pio2)); in cosf() 57 return __kernel_sindf(c1pio2 - x); in cosf() 59 return __kernel_sindf(x + c1pio2); in cosf() 64 return __kernel_cosdf(x + (hx > 0 ? -c4pio2 : c4pio2)); in cosf() 67 return __kernel_sindf(x - c3pio2); in cosf() 69 return __kernel_sindf(-c3pio2 - x); in cosf() 74 else if (ix>=0x7f800000) return x-x; in cosf() [all …]
|
A D | s_trunc.c | 33 trunc(double x) in trunc() argument 37 EXTRACT_WORDS(i0,i1,x); in trunc() 41 if(huge+x>0.0) {/* |x|<1, so return 0*sign(x) */ in trunc() 47 if(((i0&i)|i1)==0) return x; /* x is integral */ in trunc() 48 if(huge+x>0.0) { /* raise inexact flag */ in trunc() 53 if(j0==0x400) return x+x; /* inf or NaN */ in trunc() 54 else return x; /* x is integral */ in trunc() 57 if((i1&i)==0) return x; /* x is integral */ in trunc() 58 if(huge+x>0.0) /* raise inexact flag */ in trunc() 61 INSERT_WORDS(x,i0,i1); in trunc() [all …]
|
/lk-master/platform/mediatek/mt6735/include/platform/ |
A D | mt_typedefs.h | 112 #define INREG8(x) READ_REGISTER_UINT8((unsigned char *)(x)) argument 114 #define SETREG8(x, y) OUTREG8(x, INREG8(x)|(y)) argument 115 #define CLRREG8(x, y) OUTREG8(x, INREG8(x)&~(y)) argument 116 #define MASKREG8(x, y, z) OUTREG8(x, (INREG8(x)&~(y))|(z)) argument 120 #define SETREG16(x, y) OUTREG16(x, INREG16(x)|(y)) argument 121 #define CLRREG16(x, y) OUTREG16(x, INREG16(x)&~(y)) argument 122 #define MASKREG16(x, y, z) OUTREG16(x, (INREG16(x)&~(y))|(z)) argument 124 #define INREG32(x) READ_REGISTER_UINT32((unsigned int *)(x)) argument 126 #define SETREG32(x, y) OUTREG32(x, INREG32(x)|(y)) argument 127 #define CLRREG32(x, y) OUTREG32(x, INREG32(x)&~(y)) argument [all …]
|
/lk-master/platform/mediatek/mt6797/include/platform/ |
A D | mt_typedefs.h | 113 #define INREG8(x) READ_REGISTER_UINT8((unsigned char *)(x)) argument 115 #define SETREG8(x, y) OUTREG8(x, INREG8(x)|(y)) argument 116 #define CLRREG8(x, y) OUTREG8(x, INREG8(x)&~(y)) argument 117 #define MASKREG8(x, y, z) OUTREG8(x, (INREG8(x)&~(y))|(z)) argument 121 #define SETREG16(x, y) OUTREG16(x, INREG16(x)|(y)) argument 122 #define CLRREG16(x, y) OUTREG16(x, INREG16(x)&~(y)) argument 123 #define MASKREG16(x, y, z) OUTREG16(x, (INREG16(x)&~(y))|(z)) argument 125 #define INREG32(x) READ_REGISTER_UINT32((unsigned int *)(x)) argument 127 #define SETREG32(x, y) OUTREG32(x, INREG32(x)|(y)) argument 128 #define CLRREG32(x, y) OUTREG32(x, INREG32(x)&~(y)) argument [all …]
|
/lk-master/lib/bytes/include/lib/ |
A D | bytes.h | 14 #define bytes_read_u16(x) bytes_read_u16_be(x) argument 15 #define bytes_read_u24(x) bytes_read_u24_be(x) argument 16 #define bytes_read_u32(x) bytes_read_u32_be(x) argument 17 #define bytes_write_u16(x, y) bytes_write_u16_be(x, y) argument 18 #define bytes_write_u24(x, y) bytes_write_u24_be(x, y) argument 19 #define bytes_write_u32(x, y) bytes_write_u32_be(x, y) argument 21 #define bytes_read_u16(x) bytes_read_u16_le(x) argument 22 #define bytes_read_u24(x) bytes_read_u24_le(x) argument 23 #define bytes_read_u32(x) bytes_read_u32_le(x) argument 24 #define bytes_write_u16(x, y) bytes_write_u16_le(x, y) argument [all …]
|
/lk-master/lib/libc/include/ |
A D | assert.h | 17 #define ASSERT(x) \ argument 19 if (unlikely(!(x))) { \ 20 assert_fail(__FILE__, __LINE__, #x); \ 44 #define DEBUG_ASSERT(x) \ argument 46 if (DEBUG_ASSERT_IMPLEMENTED && unlikely(!(x))) { \ 47 assert_fail(__FILE__, __LINE__, #x); \ 65 #define DEBUG_ASSERT_COND(x) DEBUG_ASSERT(x) argument 66 #define DEBUG_ASSERT_MSG_COND(x, msg, msgargs...) DEBUG_ASSERT_MSG(x, msg, msgargs) argument 68 #define DEBUG_ASSERT_COND(x) \ argument 71 #define DEBUG_ASSERT_MSG_COND(x, msg, msgargs...) \ argument [all …]
|
/lk-master/external/platform/cc13xx/cc13xxware/inc/ |
A D | hw_types.h | 81 #define HWREG(x) \ argument 82 (*((volatile unsigned long *)(x))) 87 #define HWREGH(x) \ argument 88 (*((volatile unsigned short *)(x))) 93 #define HWREGB(x) \ argument 94 (*((volatile unsigned char *)(x))) 107 #define HWREGBITW(x, b) \ argument 108 HWREG(((unsigned long)(x) & 0xF0000000) | 0x02000000 | \ 109 (((unsigned long)(x) & 0x000FFFFF) << 5) | ((b) << 2)) 114 (((unsigned long)(x) & 0x000FFFFF) << 5) | ((b) << 2)) [all …]
|
/lk-master/external/platform/pico/rp2_common/pico_platform/include/pico/ |
A D | asm_helper.S | 10 #define WRAPPER_FUNC_NAME(x) __wrap_##x argument 11 #define SECTION_NAME(x) .text.##x argument 12 #define RAM_SECTION_NAME(x) .time_critical.##x argument 16 .macro regular_func x 17 .global \x 18 .type \x,%function 20 \x: 23 .macro regular_func_with_section x 24 .section .text.\x 25 regular_func \x [all …]
|
/lk-master/platform/pc/ |
A D | console.c | 85 void place(int x,int y) { in place() argument 96 curr_x = x; in place() 161 register int x,y; in _scroll() local 166 for (x = x1; x <= x2; x++) { in _scroll() 172 for (x = x1; x <= x2; x++) { in _scroll() 185 x = curr_x; in cputc() 190 x += 8; in cputc() 205 x = scan_x; in cputc() 222 x--; in cputc() 228 x++; in cputc() [all …]
|
/lk-master/platform/zynq/include/platform/ |
A D | zynq.h | 356 #define DDRC_CTRL_RDRW_IDLE_GAP(x) ((x & BIT_MASK(7) << 7) argument 358 #define DDRC_STS_OPER_MODE(x) (x & BIT_MASK(3)) argument 365 #define PLL_CFG_PLL_RES(x) ((x & BIT_MASK(4)) << 4) argument 366 #define PLL_CFG_PLL_CP(x) ((x & BIT_MASK(4)) << 8) argument 379 #define ARM_CLK_CTRL_SRCSEL(x) ((x & BIT_MASK(2)) << 4) argument 380 #define ARM_CLK_CTRL_DIVISOR(x) ((x & BIT_MASK(6)) << 8) argument 404 #define CLK_CTRL_SRCSEL(x) ((x & BIT_MASK(2)) << 4) argument 405 #define CLK_CTRL_DIVISOR0(x) ((x & BIT_MASK(6)) << 8) argument 449 #define SDIO0_WP_SEL(x) (x & BIT_MASK(6)) argument 506 #define UART_BRG_DIV(x) (x & BIT_MASK(16)) argument [all …]
|