Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 70) sorted by relevance

123

/hal_rpi_pico-latest/test/pico_float_test/
Dhazard3_test_gen.c39 uint64_t xr256_next(uint64_t s[4]) { in xr256_next()
40 const uint64_t result = xr256_rotl(s[0] + s[3], 23) + s[0]; in xr256_next()
42 const uint64_t t = s[1] << 17; in xr256_next()
44 s[2] ^= s[0]; in xr256_next()
45 s[3] ^= s[1]; in xr256_next()
46 s[1] ^= s[2]; in xr256_next()
47 s[0] ^= s[3]; in xr256_next()
49 s[2] ^= t; in xr256_next()
51 s[3] = xr256_rotl(s[3], 45); in xr256_next()
Dpico_double_test.c372 double s, c; in main() local
373 sincos(x, &s, &c); in main()
374 printf("SINCOS %10.18f %10.18f\n", s, c); in main()
375 if (s != sin(x) || c != cos(x)) { in main()
396 double s, c; in main() local
397 sincos(x, &s, &c); in main()
398 printf("SINCOS %10.18f %10.18f\n", check_nan(s), check_nan(c)); in main()
Dpico_float_test.c404 float s, c; in main() local
405 sincosf(x, &s, &c); in main()
406 printf("FSINCOS %10.18f %10.18f\n", s, c); in main()
419 sincosf(x, &s, &c); in main()
420 printf("SINCOS %10.18f %10.18f\n", s, c); in main()
421 if (s != sinf(x) || c != cosf(x)) { in main()
455 float s, c; in main() local
457 printf("FSINCOS %10.18f %10.18f\n", s, c); in main()
/hal_rpi_pico-latest/test/pico_test/include/pico/test/
Dxrand.h50 static inline uint64_t xrand_next(xrand_state_t *s) { in xrand_next() argument
51 const uint64_t s0 = s->s0; in xrand_next()
52 uint64_t s1 = s->s1; in xrand_next()
56 s->s0 = xrand_rotl(s0, 49) ^ s1 ^ (s1 << 21); // a, b in xrand_next()
57 s->s1 = xrand_rotl(s1, 28); // c in xrand_next()
67 static inline void xrand_jump(xrand_state_t *s) { in xrand_jump() argument
75 s0 ^= s->s0; in xrand_jump()
76 s1 ^= s->s1; in xrand_jump()
78 xrand_next(s); in xrand_jump()
81 s->s0 = s0; in xrand_jump()
[all …]
/hal_rpi_pico-latest/src/rp2_common/pico_stdio/
Dstdio.c59 static void stdio_out_chars_no_crlf(stdio_driver_t *driver, const char *s, int len) { in stdio_out_chars_no_crlf() argument
60 driver->out_chars(s, len); in stdio_out_chars_no_crlf()
63 static void stdio_out_chars_crlf(stdio_driver_t *driver, const char *s, int len) { in stdio_out_chars_crlf() argument
66 driver->out_chars(s, len); in stdio_out_chars_crlf()
72 bool prev_char_was_cr = i > 0 ? s[i - 1] == '\r' : driver->last_ended_with_cr; in stdio_out_chars_crlf()
73 if (s[i] == '\n' && !prev_char_was_cr) { in stdio_out_chars_crlf()
75 driver->out_chars(&s[first_of_chunk], i - first_of_chunk); in stdio_out_chars_crlf()
82 driver->out_chars(&s[first_of_chunk], len - first_of_chunk); in stdio_out_chars_crlf()
85 driver->last_ended_with_cr = s[len - 1] == '\r'; in stdio_out_chars_crlf()
88 driver->out_chars(s, len); in stdio_out_chars_crlf()
[all …]
/hal_rpi_pico-latest/src/rp2_common/pico_stdio/include/pico/
Dstdio.h145 int stdio_puts_raw(const char *s);
150 static inline int puts_raw(const char *s) { in puts_raw() argument
151 return stdio_puts_raw(s); in puts_raw()
187 int stdio_put_string(const char *s, int len, bool newline, bool cr_translation);
208 int stdio_puts(const char *s);
/hal_rpi_pico-latest/tools/pioasm/
Dgo_output.cpp35 for (const auto &s : symbols) { in output_symbols() local
36 if (!s.is_label) { in output_symbols()
37 fprintf(out, "const %s%s = %d\n", prefix.c_str(), s.name.c_str(), s.value); in output_symbols()
45 for (const auto &s : symbols) { in output_symbols() local
46 if (s.is_label) { in output_symbols()
47 fprintf(out, "const %soffset_%s = %d\n", prefix.c_str(), s.name.c_str(), s.value); in output_symbols()
Djson_output.cpp29 for (const auto &s : symbols) { in output_symbols() local
30 if (!s.is_label) { in output_symbols()
37 fprintf(out, "%s\t\"%s\": %d", prefix.c_str(), s.name.c_str(), s.value); in output_symbols()
49 for (const auto &s : symbols) { in output_symbols() local
50 if (s.is_label) { in output_symbols()
57 fprintf(out, "%s\t\"%s\": %d", prefix.c_str(), s.name.c_str(), s.value); in output_symbols()
Dada_output.cpp34 for (const auto &s : symbols) { in output_symbols() local
35 if (!s.is_label) { in output_symbols()
36 fprintf(out, "%s : constant := %d;\n", s.name.c_str(), s.value); in output_symbols()
44 for (const auto &s : symbols) { in output_symbols() local
45 if (s.is_label) { in output_symbols()
46 fprintf(out, " Offset_%s : constant := %d;\n", s.name.c_str(), s.value); in output_symbols()
Dpython_output.cpp30 for (const auto &s : symbols) { in output_symbols() local
31 if (!s.is_label) { in output_symbols()
32 fprintf(out, "%s%s = %d\n", prefix.c_str(), s.name.c_str(), s.value); in output_symbols()
40 for (const auto &s : symbols) { in output_symbols() local
41 if (s.is_label) { in output_symbols()
42 fprintf(out, "%soffset_%s = %d\n", prefix.c_str(), s.name.c_str(), s.value); in output_symbols()
160 auto op = [&](const std::string &s) { in disassemble() argument
161 op_string = s; in disassemble()
163 auto op_guts = [&](const std::string &s) { in disassemble() argument
164 ss << std::left << std::setw(24) << (op_string + "(" + s + ")"); in disassemble()
Dc_sdk_output.cpp27 for (const auto &s : symbols) { in output_symbols() local
28 if (!s.is_label) { in output_symbols()
29 fprintf(out, "#define %s%s %d\n", prefix.c_str(), s.name.c_str(), s.value); in output_symbols()
37 for (const auto &s : symbols) { in output_symbols() local
38 if (s.is_label) { in output_symbols()
39 fprintf(out, "#define %soffset_%s %du\n", prefix.c_str(), s.name.c_str(), s.value); in output_symbols()
Dlexer.ll25 yy::parser::symbol_type make_INT(const std::string &s, const yy::parser::location_type& loc);
26 yy::parser::symbol_type make_FLOAT(const std::string &s, const yy::parser::location_type& loc);
27 yy::parser::symbol_type make_HEX(const std::string &s, const yy::parser::location_type& loc);
28 yy::parser::symbol_type make_BINARY(const std::string &s, const yy::parser::location_type& loc);
227 yy::parser::symbol_type make_INT(const std::string &s, const yy::parser::location_type& loc)
230 long n = strtol (s.c_str(), NULL, 10);
232 throw yy::parser::syntax_error (loc, "integer is out of range: " + s);
236 yy::parser::symbol_type make_FLOAT(const std::string &s, const yy::parser::location_type& loc)
239 float n = strtof (s.c_str(), NULL);
243 yy::parser::symbol_type make_HEX(const std::string &s, const yy::parser::location_type& loc)
[all …]
Dpio_disassembler.cpp21 auto op = [&](const std::string &s) { in disassemble() argument
22 ss << std::left << std::setw(7) << s; in disassemble()
24 auto op_guts = [&](const std::string &s) { in disassemble() argument
25 ss << std::left << std::setw(16) << s; in disassemble()
/hal_rpi_pico-latest/src/rp2_common/hardware_uart/include/hardware/
Duart.h524 static inline void uart_puts(uart_inst_t *uart, const char *s) { in uart_puts() argument
527 while (*s) { in uart_puts()
530 uart_putc_raw(uart, *s); in uart_puts()
532 uart_putc(uart, *s); in uart_puts()
533 last_was_cr = *s++ == '\r'; in uart_puts()
536 while (*s) in uart_puts()
537 uart_putc(uart, *s++); in uart_puts()
/hal_rpi_pico-latest/tools/
Dbazel_common.py104 def print_framed_string(s): argument
106 header_spacer = "#" * (len(s) + 12)
108 print_to_stderr("### " + s + " ###")
/hal_rpi_pico-latest/src/rp2_common/hardware_dcp/include/hardware/
Ddcp_instr.inc.S127 .macro RXMS rl,rh,s
128 mrrc p4,#\s,\rl,\rh,c4
130 .macro RYMS rl,rh,s
131 mrrc p4,#\s,\rl,\rh,c5
199 .macro PXMS rl,rh,s
200 mrrc2 p4,#\s,\rl,\rh,c4
202 .macro PYMS rl,rh,s
203 mrrc2 p4,#\s,\rl,\rh,c5
/hal_rpi_pico-latest/src/rp2_common/pico_clib_interface/
DBUILD.bazel57 # It's hard to properly constrain compatibility since `auto` may select this,
73 # It's hard to properly constrain compatibility since `auto` may select this,
95 # It's hard to properly constrain compatibility since `auto` may select this,
117 # It's hard to properly constrain compatibility since `auto` may select this,
/hal_rpi_pico-latest/src/rp2_common/pico_float/
Dfloat_math.c38 #define FUNPACKS(x,s,e,m) s=((x)>>31),FUNPACK((x),(e),(m)) argument
498 int quo=0,q,r=0,s; in frem_0() local
503 s=e; if(s>12) s=12; // gain up to 12 bits on each iteration in frem_0()
505 q=((q>>(29-s))+1)>>1; // Q(s), rounded in frem_0()
506 mx=(mx<<s)-my*q; in frem_0()
507 quo=(quo<<s)+q; in frem_0()
508 e-=s; in frem_0()
/hal_rpi_pico-latest/bazel/util/
Dmultiple_choice_flag.bzl7 This can be used with select_choice() to map `config_setting`s to values.
10 flag: The flag that guides the declared `config_setting`s.
/hal_rpi_pico-latest/src/rp2_common/pico_double/
Ddouble_math.c40 #define DUNPACKS(x,s,e,m) s=((x)>>63),DUNPACK((x),(e),(m)) argument
544 int quo=0,q,r=0,s; in drem_0() local
549 s=e; if(s>12) s=12; // gain up to 12 bits on each iteration in drem_0()
551 q=((q>>(29-s))+1)>>1; // Q(s), rounded in drem_0()
552 mx=(mx<<s)-my*q; in drem_0()
553 quo=(quo<<s)+q; in drem_0()
554 e-=s; in drem_0()
/hal_rpi_pico-latest/src/host/hardware_uart/
Duart.c115 void uart_puts(uart_inst_t *uart, const char *s) { in uart_puts() argument
116 puts(s); in uart_puts()
/hal_rpi_pico-latest/cmake/
Dpico_pre_load_platform.cmake9 # PICO_CMAKE_CONFIG: PICO_PLATFORM, Platform to build for e.g. rp2040/rp2350/rp2350-arm-s/rp2350-ri…
23 if (NOT PICO_DEFAULT_BOARD_rp2350-arm-s)
24 set(PICO_DEFAULT_BOARD_rp2350-arm-s "pico2")
75 …2350 is specified for PICO_PLATFORM e.g. rp2350-arm-s/rp2350-riscv, type=string, default=rp2350-ar…
80 set(PICO_DEFAULT_RP2350_PLATFORM "rp2350-arm-s")
/hal_rpi_pico-latest/tools/pioasm/gen/
Dlexer.cpp879 yy::parser::symbol_type make_INT(const std::string &s, const yy::parser::location_type& loc);
880 yy::parser::symbol_type make_FLOAT(const std::string &s, const yy::parser::location_type& loc);
881 yy::parser::symbol_type make_HEX(const std::string &s, const yy::parser::location_type& loc);
882 yy::parser::symbol_type make_BINARY(const std::string &s, const yy::parser::location_type& loc);
2827 static int yy_flex_strlen (const char * s ) in yy_flex_strlen() argument
2830 for ( n = 0; s[n]; ++n ) in yy_flex_strlen()
2866 yy::parser::symbol_type make_INT(const std::string &s, const yy::parser::location_type& loc) in make_INT() argument
2869 long n = strtol (s.c_str(), NULL, 10); in make_INT()
2871 throw yy::parser::syntax_error (loc, "integer is out of range: " + s); in make_INT()
2875 yy::parser::symbol_type make_FLOAT(const std::string &s, const yy::parser::location_type& loc) in make_FLOAT() argument
[all …]
/hal_rpi_pico-latest/src/common/boot_picoboot_headers/
DBUILD.bazel3 # This needs to remain compatible with the host build since it's used by
/hal_rpi_pico-latest/src/rp2350/
DREADME.md2 `PICO_PLATFORM=rp2350-arm-s` or `PICO_PLATFORM=rp235-riscv`

123