github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/runtime/arch_386.go (about)

     1  package runtime
     2  
     3  const GOARCH = "386"
     4  
     5  // The bitness of the CPU (e.g. 8, 32, 64).
     6  const TargetBits = 32
     7  
     8  const deferExtraRegs = 0
     9  
    10  const callInstSize = 5 // "call someFunction" is 5 bytes
    11  
    12  // Align on word boundary.
    13  func align(ptr uintptr) uintptr {
    14  	return (ptr + 15) &^ 15
    15  }
    16  
    17  func getCurrentStackPointer() uintptr {
    18  	return uintptr(stacksave())
    19  }