# Functions
CompilerSupported is exported for tests and includes constraints here and also the assembler.
MmapCodeSegment copies the code into the executable region and returns the byte slice of the region.
MprotectRX is like syscall.Mprotect with RX permission, defined locally so that freebsd compiles.
MunmapCodeSegment unmaps the given memory region.
Nanosleep implements sys.Nanosleep with time.Sleep.
Nanotime implements sys.Nanotime with runtime.nanotime() if CGO is available and time.Since if not.
NewFakeNanotime implements sys.Nanotime that increases by 1ms each reading.
NewFakeRandSource returns a deterministic source of random values.
NewFakeWalltime implements sys.Walltime with FakeEpochNanos that increases by 1ms each reading.
RemapCodeSegment reallocates the memory mapping of an existing code segment to increase its size.
ToPosixPath returns the input, as only windows might return backslashes.
UnwrapOSError returns a syscall.Errno or zero if the input is nil.
Walltime implements sys.Walltime with time.Now.
# Constants
CpuExtraFeatureABM is the flag to query CpuFeatureFlags.HasExtra for Advanced Bit Manipulation capabilities (e.g.
CpuFeatureSSE3 is the flag to query CpuFeatureFlags.Has for SSEv3 capabilities.
CpuFeatureSSE4_1 is the flag to query CpuFeatureFlags.Has for SSEv4.1 capabilities.
CpuFeatureSSE4_2 is the flag to query CpuFeatureFlags.Has for SSEv4.2 capabilities.
FakeEpochNanos is midnight UTC 2022-01-01 and exposed for testing.
# Variables
CpuFeatures exposes the capabilities for this CPU, queried via the Has, HasExtra methods.
FakeNanosleep implements sys.Nanosleep by returning without sleeping.
FakeOsyield implements sys.Osyield by returning without yielding.
TODO: IsAtLeastGo120.
# Interfaces
CpuFeatureFlags exposes methods for querying CPU capabilities.
# Type aliases
FdSet re-exports syscall.FdSet with utility methods.