# Functions
CompilerSupported includes constraints here and also the assembler.
No description provided by the author
MmapCodeSegment copies the code into the executable region and returns the byte slice of the region.
MprotectRX is like syscall.Mprotect with RX permission.
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.
ToPosixPath returns the input, as only windows might return backslashes.
Walltime implements sys.Walltime with time.Now.
# Constants
CpuExtraFeatureAmd64ABM is the flag to query CpuFeatureFlags.HasExtra for Advanced Bit Manipulation capabilities (e.g.
CpuFeatureAmd64SSE3 is the flag to query CpuFeatureFlags.Has for SSEv3 capabilities on amd64.
CpuFeatureAmd64SSE4_1 is the flag to query CpuFeatureFlags.Has for SSEv4.1 capabilities on amd64.
CpuFeatureAmd64SSE4_2 is the flag to query CpuFeatureFlags.Has for SSEv4.2 capabilities on amd64.
CpuFeatureArm64Atomic is the flag to query CpuFeatureFlags.Has for Large System Extensions capabilities on arm64.
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.
# Interfaces
CpuFeatureFlags exposes methods for querying CPU capabilities.
# Type aliases
No description provided by the author