mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 19:43:44 +00:00
make spellfix (+ manual tweak)
This commit is contained in:
@@ -76,7 +76,7 @@ func fmaximumf(x, y float32) float32 {
|
||||
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.
|
||||
// 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 reverse the order by inverting the bits.
|
||||
// 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 {
|
||||
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 reverse the order by inverting the bits.
|
||||
// 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 {
|
||||
xBits ^= magMask
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ func (layout gcLayout) scan(start, len uintptr) {
|
||||
scanSimple(start, len, size*unsafe.Alignof(start), mask)
|
||||
|
||||
default:
|
||||
// The layout is stored seperately in a global object.
|
||||
// The layout is stored separately in a global object.
|
||||
// Extract the size and bitmap.
|
||||
layoutAddr := unsafe.Pointer(layout)
|
||||
size := *(*uintptr)(layoutAddr)
|
||||
|
||||
Reference in New Issue
Block a user