tinygo/src/runtime
Ayke van Laethem 5bf058a0a6
nrf: fix off-by-one in modulo of runtime.ticks
This code:
    foo & 0xffffff
Is equivalent to this code:
    foo % 0x1000000
However, to drop the high 8 bits, this calculation was used:
    foo % 0xffffff
This is far more expensive (and incorrect), as it needs an actual modulo
operation which increases code size and probably reduces speed on a
Cortex-M4 and needs library functions for a Cortex-M0 increasing code
size by a much bigger amount.
2018-09-29 16:21:17 +02:00
..
cgo runtime/cgo: go fmt 2018-09-14 20:58:00 +02:00
arch_amd64.go Move runtime.TargetBits out of the compiler 2018-09-02 16:00:31 +02:00
arch_avr.go avr: use i16 for lengths 2018-09-20 20:52:59 +02:00
arch_wasm.go avr: use i16 for lengths 2018-09-20 20:52:59 +02:00
atomic.go all: basic support for the os package 2018-09-16 13:01:03 +02:00
chan.go Add dummy channel support 2018-08-30 05:32:18 +02:00
defer.go compiler: rewrite defer support to better support them 2018-09-05 20:34:17 +02:00
gc.go all: replace _extern_* workaround with //go:extern pragma 2018-09-21 14:37:11 +02:00
hashmap.go all: implement iterating over hashmaps 2018-09-15 00:29:34 +02:00
interface.go compiler: implement type assert without comma-ok 2018-09-11 19:51:31 +02:00
os_js.go Add runtime.GOOS 2018-08-30 05:48:16 +02:00
os_linux.go Add runtime.GOOS 2018-08-30 05:48:16 +02:00
panic.go avr: use i16 for lengths 2018-09-20 20:52:59 +02:00
poll.go all: basic support for the os package 2018-09-16 13:01:03 +02:00
print.go Optimize/eliminate bounds checking 2018-09-02 16:28:46 +02:00
runtime.go all: allow -O0 optimization level 2018-09-24 16:17:42 +02:00
runtime_arm.go all: move generic ARM bits into separate files 2018-09-22 01:44:47 +02:00
runtime_avr.go runtime: merge common sleep() functions 2018-09-22 01:40:04 +02:00
runtime_nrf.go nrf: fix off-by-one in modulo of runtime.ticks 2018-09-29 16:21:17 +02:00
runtime_stm32.go stm32: initial support 2018-09-22 01:51:44 +02:00
runtime_unix.go runtime: merge common sleep() functions 2018-09-22 01:40:04 +02:00
scheduler.go all: rewrite sleep function 2018-09-15 01:58:54 +02:00
stack.go Implement runtime functions for reflect 2018-08-30 22:53:34 +02:00
string.go compiler: implement range over a string 2018-09-22 19:19:53 +02:00
sync.go all: basic support for the os package 2018-09-16 13:01:03 +02:00
syscall.go all: basic support for the os package 2018-09-16 13:01:03 +02:00