mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-21 12:59:04 +00:00
make spellfix (+ manual tweak)
This commit is contained in:
+1
-1
@@ -107,7 +107,7 @@ struct AssemblerInvocation {
|
|||||||
EmitDwarfUnwindType EmitDwarfUnwind;
|
EmitDwarfUnwindType EmitDwarfUnwind;
|
||||||
|
|
||||||
// Whether to emit compact-unwind for non-canonical entries.
|
// Whether to emit compact-unwind for non-canonical entries.
|
||||||
// Note: maybe overriden by other constraints.
|
// Note: maybe overridden by other constraints.
|
||||||
LLVM_PREFERRED_TYPE(bool)
|
LLVM_PREFERRED_TYPE(bool)
|
||||||
unsigned EmitCompactUnwindNonCanonical : 1;
|
unsigned EmitCompactUnwindNonCanonical : 1;
|
||||||
|
|
||||||
|
|||||||
@@ -551,7 +551,7 @@ func handleSoftDeviceEvents() {
|
|||||||
return // TODO: nrf51 etc
|
return // TODO: nrf51 etc
|
||||||
}
|
}
|
||||||
if result != 0 {
|
if result != 0 {
|
||||||
// Some error occured. The only possible error is
|
// Some error occurred. The only possible error is
|
||||||
// NRF_ERROR_NOT_FOUND, which means there are no more events.
|
// NRF_ERROR_NOT_FOUND, which means there are no more events.
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ func (spi *SPI) tx(tx []byte) error {
|
|||||||
|
|
||||||
// Make sure the read buffer stays alive until this point (in the unlikely
|
// Make sure the read buffer stays alive until this point (in the unlikely
|
||||||
// case the tx slice wasn't read after this function returns and a GC cycle
|
// case the tx slice wasn't read after this function returns and a GC cycle
|
||||||
// happened inbetween).
|
// happened in the meantime).
|
||||||
keepAliveNoEscape(unsafe.Pointer(unsafe.SliceData(tx)))
|
keepAliveNoEscape(unsafe.Pointer(unsafe.SliceData(tx)))
|
||||||
|
|
||||||
// We didn't read any result values, which means the RX FIFO has likely
|
// We didn't read any result values, which means the RX FIFO has likely
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ func fmaximumf(x, y float32) float32 {
|
|||||||
return maximumFloat32(x, y)
|
return maximumFloat32(x, y)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create seperate copies of the function that are not exported.
|
// Create separate copies of the function that are not exported.
|
||||||
// This is necessary so that LLVM does not recognize them as builtins.
|
// This is necessary so that LLVM does not recognize them as builtins.
|
||||||
// If tests called the builtins, LLVM would just override them on most platforms.
|
// If tests called the builtins, LLVM would just override them on most platforms.
|
||||||
|
|
||||||
@@ -114,7 +114,7 @@ func minimumFloat[T float, I floatInt](x, y T, minPosNaN, magMask I) T {
|
|||||||
// We can turn a float into a signed-comparable value by reversing the comparison order of negative values.
|
// We can turn a float into a signed-comparable value by reversing the comparison order of negative values.
|
||||||
// We can reverse the order by inverting the bits.
|
// We can reverse the order by inverting the bits.
|
||||||
// This also ensures that positive zero compares greater than negative zero (as required by the spec).
|
// This also ensures that positive zero compares greater than negative zero (as required by the spec).
|
||||||
// Negative NaN values will compare less than any other value, so they require no special handling to propogate.
|
// Negative NaN values will compare less than any other value, so they require no special handling to propagate.
|
||||||
if xBits < 0 {
|
if xBits < 0 {
|
||||||
xBits ^= magMask
|
xBits ^= magMask
|
||||||
}
|
}
|
||||||
@@ -138,7 +138,7 @@ func maximumFloat[T float, I floatInt](x, y T, minPosNaN, magMask I) T {
|
|||||||
// We can turn a float into a signed-comparable value by reversing the comparison order of negative values.
|
// We can turn a float into a signed-comparable value by reversing the comparison order of negative values.
|
||||||
// We can reverse the order by inverting the bits.
|
// We can reverse the order by inverting the bits.
|
||||||
// This also ensures that positive zero compares greater than negative zero (as required by the spec).
|
// This also ensures that positive zero compares greater than negative zero (as required by the spec).
|
||||||
// Positive NaN values will compare greater than any other value, so they require no special handling to propogate.
|
// Positive NaN values will compare greater than any other value, so they require no special handling to propagate.
|
||||||
if xBits < 0 {
|
if xBits < 0 {
|
||||||
xBits ^= magMask
|
xBits ^= magMask
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ func (layout gcLayout) scan(start, len uintptr) {
|
|||||||
scanSimple(start, len, size*unsafe.Alignof(start), mask)
|
scanSimple(start, len, size*unsafe.Alignof(start), mask)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// The layout is stored seperately in a global object.
|
// The layout is stored separately in a global object.
|
||||||
// Extract the size and bitmap.
|
// Extract the size and bitmap.
|
||||||
layoutAddr := unsafe.Pointer(layout)
|
layoutAddr := unsafe.Pointer(layout)
|
||||||
size := *(*uintptr)(layoutAddr)
|
size := *(*uintptr)(layoutAddr)
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ MEMORY
|
|||||||
/* RAM consists of 8 banks, SRAM0..SRAM7 with striped mapping. */
|
/* RAM consists of 8 banks, SRAM0..SRAM7 with striped mapping. */
|
||||||
SRAM : ORIGIN = 0x20000000, LENGTH = 512k
|
SRAM : ORIGIN = 0x20000000, LENGTH = 512k
|
||||||
/* Banks 8 and 9 use direct mapping which can be
|
/* Banks 8 and 9 use direct mapping which can be
|
||||||
specailized for applications where predictable access time is beneficial.
|
specialized for applications where predictable access time is beneficial.
|
||||||
i.e: Separate stacks for core0 and core1. */
|
i.e: Separate stacks for core0 and core1. */
|
||||||
SRAM4 : ORIGIN = 0x20080000, LENGTH = 4k
|
SRAM4 : ORIGIN = 0x20080000, LENGTH = 4k
|
||||||
SRAM5 : ORIGIN = 0x20081000, LENGTH = 4k
|
SRAM5 : ORIGIN = 0x20081000, LENGTH = 4k
|
||||||
|
|||||||
Reference in New Issue
Block a user