/hal_rpi_pico-latest/src/rp2_common/pico_float/ |
D | float_math.c | 37 #define FUNPACK(x,e,m) e=((x)>>23)&0xff,m=((x)&0x007fffff)|0x00800000 argument 38 #define FUNPACKS(x,s,e,m) s=((x)>>31),FUNPACK((x),(e),(m)) argument 58 static inline bool fisnan(float x) { in fisnan() argument 59 ui32 ix=float2ui32(x); in fisnan() 63 #define check_nan_f1(x) if (fisnan((x))) return (x) argument 64 #define check_nan_f2(x,y) if (fisnan((x))) return (x); else if (fisnan((y))) return (y); argument 66 #define check_nan_f1(x) ((void)0) argument 67 #define check_nan_f2(x,y) ((void)0) argument 70 static inline int fgetsignexp(float x) { in fgetsignexp() argument 71 ui32 ix=float2ui32(x); in fgetsignexp() [all …]
|
/hal_rpi_pico-latest/src/rp2_common/pico_double/ |
D | double_math.c | 39 #define DUNPACK(x,e,m) e=((x)>>52)&0x7ff,m=((x)&0x000fffffffffffffULL)|0x0010000000000000ULL argument 40 #define DUNPACKS(x,s,e,m) s=((x)>>63),DUNPACK((x),(e),(m)) argument 60 static inline bool disnan(double x) { in disnan() argument 61 ui64 ix= double2ui64(x); in disnan() 66 #define check_nan_d1(x) if (disnan((x))) return (x) argument 67 #define check_nan_d2(x,y) if (disnan((x))) return (x); else if (disnan((y))) return (y); argument 69 #define check_nan_d1(x) ((void)0) argument 70 #define check_nan_d2(x,y) ((void)0) argument 73 static inline int dgetsignexp(double x) { in dgetsignexp() argument 74 ui64 ix=double2ui64(x); in dgetsignexp() [all …]
|
/hal_rpi_pico-latest/src/rp2_common/hardware_rcp/include/hardware/ |
D | rcp.h | 227 static __rcpinline void rcp_ivalid(uint32_t x, uint32_t parity) { in rcp_ivalid() argument 228 rcp_asm ("mcrr p7, #6, %0, %1, c8\n" : : "r" (x), "r" (parity)); in rcp_ivalid() 231 static __rcpinline void rcp_ivalid_nodelay(uint32_t x, uint32_t parity) { in rcp_ivalid_nodelay() argument 232 rcp_asm ("mcrr2 p7, #6, %0, %1, c8\n" : : "r" (x), "r" (parity)); in rcp_ivalid_nodelay() 236 static __rcpinline void rcp_iequal(uint32_t x, uint32_t y) { in rcp_iequal() argument 237 rcp_asm ("mcrr p7, #7, %0, %1, c0\n" : : "r" (x), "r" (y)); in rcp_iequal() 240 static __rcpinline void rcp_iequal_nodelay(uint32_t x, uint32_t y) { in rcp_iequal_nodelay() argument 241 rcp_asm ("mcrr2 p7, #7, %0, %1, c0\n" : : "r" (x), "r" (y)); in rcp_iequal_nodelay() 391 .macro rcp_ivalid x, parity 392 mcrr p7, #6, \x , \parity , c8 [all …]
|
/hal_rpi_pico-latest/src/rp2_common/hardware_riscv/include/hardware/ |
D | riscv.h | 99 static inline uint32_t riscv_encode_imm_u(uint32_t x) { in riscv_encode_imm_u() argument 100 return (x >> 12) << 12; in riscv_encode_imm_u() 104 static inline uint32_t riscv_encode_imm_i(uint32_t x) { in riscv_encode_imm_i() argument 105 return (x & 0xfff) << 20; in riscv_encode_imm_i() 109 static inline uint32_t riscv_encode_imm_u_hi(uint32_t x) { in riscv_encode_imm_u_hi() argument 112 x += (x & 0x800) << 1; in riscv_encode_imm_u_hi() 113 return riscv_encode_imm_u(x); in riscv_encode_imm_u_hi() 117 static inline uint32_t riscv_encode_imm_b(uint32_t x) { in riscv_encode_imm_b() argument 119 (((x >> 12) & 0x01) << 31) | in riscv_encode_imm_b() 120 (((x >> 5) & 0x3f) << 25) | in riscv_encode_imm_b() [all …]
|
/hal_rpi_pico-latest/test/pico_float_test/ |
D | pico_double_test.c | 25 #define test_assert(x) ({ if (!(x)) { printf("Assertion failed: ");puts(#x);printf(" at " __FILE__… argument 357 for (double x = 0; x < 3; x++) { in main() local 358 printf("\n ----- %g\n", x); in main() 359 printf("SQRT %10.18g\n", check_close1(sqrt, x)); in main() 360 printf("COS %10.18g\n", check_close1(cos, x)); in main() 361 printf("SIN %10.18g\n", check_close1(sin, x)); in main() 362 printf("TAN %10.18g\n", check_close1(tan, x)); in main() 363 printf("ATAN2 %10.18g\n", check_close2(atan2, x, 10.0)); in main() 364 printf("ATAN2 %10.18g\n", check_close2(atan2, 10.0, x)); in main() 365 printf("EXP %10.18g\n", check_close1(exp, x)); in main() [all …]
|
D | pico_float_test.c | 25 #define test_assert(x) ({ if (!(x)) { printf("Assertion failed: ");puts(#x);printf(" at " __FILE__… argument 397 for (float x = 0; x < 3; x++) { in main() local 398 printf("\n ----- %f\n", x); in main() 400 printf("FSQRT %10.18f\n", check_close1(sqrtf, x)); in main() 402 printf("FCOS %10.18f\n", check_close1(cosf, x)); in main() 403 printf("FSIN %10.18f\n", check_close1(sinf, x)); in main() 405 sincosf(x, &s, &c); in main() 407 printf("FTAN %10.18f\n", check_close1(tanf, x)); in main() 408 printf("FATAN2 %10.18f\n", check_close2(atan2f, x, 10.f)); in main() 409 printf("FATAN2 %10.18f\n", check_close2(atan2f, 10.f, x)); in main() [all …]
|
D | hazard3_test_gen.c | 35 static inline uint64_t xr256_rotl(const uint64_t x, int k) { in xr256_rotl() argument 36 return (x << k) | (x >> (64 - k)); in xr256_rotl() 55 uint32_t bitcast_f2u(float x) { in bitcast_f2u() argument 61 un.f = x; in bitcast_f2u() 65 float bitcast_u2f(uint32_t x) { in bitcast_u2f() argument 70 un.u = x; in bitcast_u2f() 74 bool is_nan_u(uint32_t x) { in is_nan_u() argument 75 return ((x >> 23) & 0xffu) == 0xffu && (x & ~(-1u << 23)); in is_nan_u() 78 uint32_t flush_to_zero_u(uint32_t x) { in flush_to_zero_u() argument 79 if (!(x & (0xffu << 23))) { in flush_to_zero_u() [all …]
|
/hal_rpi_pico-latest/src/rp2_common/hardware_gpio/include/hardware/ |
D | gpio_coproc.h | 28 __force_inline static void gpioc_lo_out_put(uint32_t x) { in gpioc_lo_out_put() argument 29 pico_default_asm_volatile ("mcr p0, #0, %0, c0, c0" : : "r" (x)); in gpioc_lo_out_put() 33 __force_inline static void gpioc_lo_out_xor(uint32_t x) { in gpioc_lo_out_xor() argument 34 pico_default_asm_volatile ("mcr p0, #1, %0, c0, c0" : : "r" (x)); in gpioc_lo_out_xor() 38 __force_inline static void gpioc_lo_out_set(uint32_t x) { in gpioc_lo_out_set() argument 39 pico_default_asm_volatile ("mcr p0, #2, %0, c0, c0" : : "r" (x)); in gpioc_lo_out_set() 43 __force_inline static void gpioc_lo_out_clr(uint32_t x) { in gpioc_lo_out_clr() argument 44 pico_default_asm_volatile ("mcr p0, #3, %0, c0, c0" : : "r" (x)); in gpioc_lo_out_clr() 48 __force_inline static void gpioc_hi_out_put(uint32_t x) { in gpioc_hi_out_put() argument 49 pico_default_asm_volatile ("mcr p0, #0, %0, c0, c1" : : "r" (x)); in gpioc_hi_out_put() [all …]
|
/hal_rpi_pico-latest/test/pico_stdlib_test/ |
D | pico_stdlib_test.c | 17 int32_t x = 0; in test_builtin_bitops() local 30 x += __builtin_popcount(vals32[j]); in test_builtin_bitops() 31 x += __builtin_popcountl(vals32[j]); in test_builtin_bitops() 32 x += (int32_t)__rev(vals32[j]); in test_builtin_bitops() 36 x += __builtin_clz(vals32[j]); in test_builtin_bitops() 37 x += __builtin_ctz(vals32[j]); in test_builtin_bitops() 39 x += 64; in test_builtin_bitops() 42 x += __builtin_clz(vals32[j]); in test_builtin_bitops() 43 x += __builtin_ctz(vals32[j]); in test_builtin_bitops() 45 if (__builtin_clz(vals32[j]) != __builtin_clzl(vals32[j])) x += 17; in test_builtin_bitops() [all …]
|
/hal_rpi_pico-latest/src/host/pico_platform/include/pico/ |
D | platform.h | 40 #define __time_critical_func(x) x argument 47 #define __STRING(x) #x argument 64 #define __aligned(x) __attribute__((aligned(x))) argument 67 #define PICO_WEAK_FUNCTION_DEF(x) _Pragma(__STRING(weak x)) argument 68 #define PICO_WEAK_FUNCTION_IMPL_NAME(x) x argument 87 #define __aligned(x) __declspec(align(x)) argument 91 #define __CONCAT(x,y) x ## y argument 96 #define PICO_WEAK_FUNCTION_DEF(x) __pragma(comment(linker, __STRING(/alternatename:_##x=_##x##__wea… argument 97 #define PICO_WEAK_FUNCTION_IMPL_NAME(x) x ## __weak argument 128 extern uint32_t host_safe_hw_ptr_impl(uintptr_t x); [all …]
|
/hal_rpi_pico-latest/src/rp2350/pico_platform/include/pico/ |
D | asm_helper.S | 30 .macro regular_func x 31 .global \x 32 .type \x,%function 36 \x: 39 .macro weak_func x 40 .weak \x 41 .type \x,%function 45 \x: 48 .macro regular_func_with_section x 49 .section .text.\x [all …]
|
/hal_rpi_pico-latest/src/rp2_common/pico_clib_interface/include/llvm_libc/sys/ |
D | cdefs.h | 12 #define __CONCAT1(x,y) x ## y argument 13 #define __CONCAT(x,y) __CONCAT1(x,y) argument 14 #define __STRING(x) #x argument 15 #define __XSTRING(x) __STRING(x) argument 22 #define __aligned(x) __attribute__((__aligned__(x))) argument
|
/hal_rpi_pico-latest/src/rp2_common/pico_lwip/include/arch/ |
D | cc.h | 61 #define PACK_STRUCT_FIELD(x) x argument 69 #define PACK_STRUCT_FIELD(x) x argument 76 #define PACK_STRUCT_FIELD(x) x argument 83 #define PACK_STRUCT_FIELD(x) x argument 89 #define LWIP_PLATFORM_ASSERT(x) panic(x) argument
|
/hal_rpi_pico-latest/src/rp2_common/pico_platform_compiler/include/pico/platform/ |
D | compiler.h | 32 #define __aligned(x) __attribute__((__aligned__(x))) argument 63 static inline uint __builtin_ctz(uint x) { in __builtin_ctz() argument 65 return __ctzsi2(x); in __builtin_ctz() 67 #define __builtin_expect(x, y) (x) argument 68 #define __builtin_isnan(x) __iar_isnan(x) argument 83 #define GCC_Like_Pragma(x) argument 90 #define Clang_Pragma(x) argument 97 #define GCC_Pragma(x) argument 187 #define WRAPPER_FUNC(x) __wrap_ ## x argument 188 #define REAL_FUNC(x) __real_ ## x argument [all …]
|
/hal_rpi_pico-latest/src/common/pico_base_headers/include/pico/ |
D | assert.h | 32 #define PARAM_ASSERTIONS_ENABLED(x) ((PARAM_ASSERTIONS_ENABLED_ ## x || PARAM_ASSERTIONS_ENABLE_ALL… argument 34 #define invalid_params_if(x, test) ({if (PARAM_ASSERTIONS_ENABLED(x)) assert(!(test));}) argument 35 #define valid_params_if(x, test) ({if (PARAM_ASSERTIONS_ENABLED(x)) assert(test);}) argument 36 #define hard_assert_if(x, test) ({if (PARAM_ASSERTIONS_ENABLED(x)) hard_assert(!(test));}) argument 37 #define invalid_params_if_and_return(x, test, rc) ({/*if (PARAM_ASSERTIONS_ENABLED(x)) assert(!(tes… argument
|
/hal_rpi_pico-latest/src/common/boot_picobin_headers/include/boot/ |
D | picobin.h | 15 #define _u(x) x argument 17 #define _u(x) x ## u argument 55 #define _PICOBIN_INDEX_TO_BITS(y, x) (y ## x << y ## _LSB) argument 56 #define PICOBIN_INDEX_TO_BITS(y, x) (y ## _ ## x << y ## _LSB) argument 63 …define PICOBIN_IMAGE_TYPE_IMAGE_TYPE_AS_BITS(x) _PICOBIN_INDEX_TO_BITS(PICOBIN_IMAGE_TYPE_IMAGE_TY… argument 70 …ine PICOBIN_IMAGE_TYPE_EXE_SECURITY_AS_BITS(x) _PICOBIN_INDEX_TO_BITS(PICOBIN_IMAGE_TYPE_EXE_SECUR… argument 77 #define PICOBIN_IMAGE_TYPE_EXE_CPU_AS_BITS(x) _PICOBIN_INDEX_TO_BITS(PICOBIN_IMAGE_TYPE_EXE_CPU, _ … argument 83 #define PICOBIN_IMAGE_TYPE_EXE_CHIP_AS_BITS(x) _PICOBIN_INDEX_TO_BITS(PICOBIN_IMAGE_TYPE_EXE_CHIP, … argument 139 … PICOBIN_PARTITION_FLAGS_LINK_TYPE_AS_BITS(x) _PICOBIN_INDEX_TO_BITS(PICOBIN_PARTITION_FLAGS_LINK_… argument
|
/hal_rpi_pico-latest/test/pico_divider_test/ |
D | pico_divider_test.c | 16 void test_mulib_divu64u64(ui64*y,ui64*x,ui64*q,ui64*r) { in test_mulib_divu64u64() argument 17 *q = divmod_u64u64_rem(*y, *x, r); in test_mulib_divu64u64() 19 void test_mulib_divs64s64( i64*y, i64*x, i64*q, i64*r) { in test_mulib_divs64s64() argument 20 *q = divmod_s64s64_rem(*y, *x, r); in test_mulib_divs64s64() 104 void test_divu64u64(ui64 y,ui64 x) { in test_divu64u64() argument 106 test_mulib_divu64u64(&y,&x,&q,&r); in test_divu64u64() 108 if (!x) return; in test_divu64u64() 110 if(q==y/x&&r==y%x) ; in test_divu64u64() 114 o16hex(x); osp(); in test_divu64u64() 118 o16hex(y/x); osp(); in test_divu64u64() [all …]
|
/hal_rpi_pico-latest/src/common/pico_base_headers/include/ |
D | pico.h | 22 #define __PICO_STRING(x) #x argument 23 #define __PICO_XSTRING(x) __PICO_STRING(x) argument 24 #define __PICO_CONCAT1(x, y) x ## y argument
|
/hal_rpi_pico-latest/test/kitchen_sink/ |
D | kitchen_sink.c | 159 __force_inline int something_inlined(int x) { in something_inlined() argument 160 return x * 2; in something_inlined() 166 float __attribute__((noinline)) foox(float x, float b) { in foox() argument 167 return x * b; in foox() 181 static uint x[2]; in main() local 182 printf("x[0] = %p, x[1] = %p\n", x, x+1); in main()
|
/hal_rpi_pico-latest/src/rp2_common/hardware_sync/include/hardware/ |
D | sync.h | 332 #define remove_volatile_cast(t, x) (t)(x) argument 333 #define remove_volatile_cast_no_barrier(t, x) (t)(x) argument 335 …cast(t, x) ({__compiler_memory_barrier(); Clang_Pragma("clang diagnostic push"); Clang_Pragma("cla… argument 336 …le_cast_no_barrier(t, x) ({ Clang_Pragma("clang diagnostic push"); Clang_Pragma("clang diagnostic … argument
|
/hal_rpi_pico-latest/src/rp2_common/pico_divider/ |
D | divider_hardware.S | 286 @ here x +ve 287 beq 2f @ could x be zero? 291 @ y -ve, x +ve 301 bne 3b @ back if x not zero 324 @ here x -ve 328 @ y +ve, x -ve 335 @ y -ve, x -ve 345 cmp r3,#0 @ yes; and x? 348 beq 2f @ x==0? 377 movs r2,r0 @ x>y, so result is 0 remainder y [all …]
|
/hal_rpi_pico-latest/src/rp2350/boot_stage2/include/boot_stage2/ |
D | config.h | 91 #define _PICO__STRING(x) #x argument 92 #define _PICO__XSTRING(x) _PICO__STRING(x) argument 93 #define _PICO__CONCAT1(x, y) x ## y argument
|
/hal_rpi_pico-latest/src/rp2_common/cmsis/stub/CMSIS/Core/Include/ |
D | cmsis_compiler.h | 123 #define __ALIGNED(x) __attribute__((aligned(x))) argument 136 #define __ALIAS(x) __attribute__ ((alias(x))) argument 196 #define __ALIGNED(x) __align(x) argument 210 #define __ALIAS(x) __attribute__ ((alias(x))) argument 269 #define __ALIGNED(x) argument 283 #define __ALIAS(x) __attribute__ ((alias(x))) argument
|
/hal_rpi_pico-latest/src/rp2350/boot_stage2/ |
D | pad_checksum | 7 def any_int(x): argument 9 return int(x, 0) 11 raise argparse.ArgumentTypeError("expected an integer, not '{!r}'".format(x)) 14 def bitrev(x, width): argument 15 return int("{:0{w}b}".format(x, w=width)[::-1], 2)
|
/hal_rpi_pico-latest/src/rp2_common/pico_platform_sections/include/pico/platform/ |
D | sections.h | 175 #define RAM_SECTION_NAME(x) .time_critical.##x argument 179 #define SECTION_NAME(x) .text.##x argument
|