Skip to main content
Log in

Mojo function

is_cpu

is_cpu[target: StringLiteral]() -> Bool

Checks if the target is a CPU (compile-time version).

Parameters:

  • target (StringLiteral): Target string to check.

Returns:

True if the target is a CPU, False otherwise.

is_cpu(target: String) -> Bool

Checks if the target is a CPU (runtime version).

Args:

  • target (String): Target string to check.

Returns:

True if the target is a CPU, False otherwise.