#include <compare>#include <cstddef>#include <cstdint>Go to the source code of this file.
Classes | |
| struct | pulp::platform::DeviceCapabilityInputs |
| What a shell observed about the device it is running on. More... | |
Namespaces | |
| namespace | pulp |
| namespace | pulp::platform |
| Device capability vocabulary: one tier ladder, one thermal ladder, and the projection from observed inputs onto them. | |
| namespace | pulp::platform::detail |
Enumerations | |
| enum class | pulp::platform::DeviceCapabilityTier : std::uint8_t { pulp::platform::Constrained = 0 , pulp::platform::Standard = 1 , pulp::platform::Full = 2 } |
| How much of the product a device can carry, on one ascending ladder. More... | |
| enum class | pulp::platform::ThermalState : std::uint8_t { pulp::platform::Nominal = 0 , pulp::platform::Fair = 1 , pulp::platform::Serious = 2 , pulp::platform::Critical = 3 } |
| Live thermal pressure, ascending in heat. More... | |
| enum class | pulp::platform::PointerPrecision : std::uint8_t { pulp::platform::Coarse = 0 , pulp::platform::Fine = 1 } |
| Precision of the device's primary pointing device. More... | |
Functions | |
| constexpr DeviceCapabilityTier | pulp::platform::detail::min_tier (DeviceCapabilityTier left, DeviceCapabilityTier right) |
| Returns the lower of two tiers. | |
| constexpr DeviceCapabilityTier | pulp::platform::project_device_capability_tier (DeviceCapabilityInputs inputs) |
| Projects observed capabilities onto the tier ladder. | |
Variables | |
| constexpr std::size_t | pulp::platform::kDeviceCapabilityTierCount = 3 |
| constexpr std::size_t | pulp::platform::kThermalStateCount = 4 |
| constexpr std::uint64_t | pulp::platform::kStandardTierMemoryBytes = 3ull * 1024 * 1024 * 1024 |
| Memory floor for DeviceCapabilityTier::Standard. | |
| constexpr std::uint64_t | pulp::platform::kFullTierMemoryBytes = 8ull * 1024 * 1024 * 1024 |
| Memory floor for DeviceCapabilityTier::Full. | |
| constexpr std::uint32_t | pulp::platform::kStandardTierCoreCount = 4 |
| Core-count floor for DeviceCapabilityTier::Standard. | |
| constexpr std::uint32_t | pulp::platform::kFullTierCoreCount = 8 |
| Core-count floor for DeviceCapabilityTier::Full. | |