package janestreet_cpuid

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Amd.Extended_feature_flags_subleaf_0Source

The leaf at 0x7 is special because in addition to putting 0x7 it also lets you put a value into ECX to get a particular feature subleaf. In this case we want ECX=0x0, and any processor which supports EAX=0x7 (which we do check) supports ECX=0x0.

This provides flags into more modern features on AMD CPUs, including some which most of our machines definitely do not have. If you use any of these features, check to make sure they're supported. *

Sourcemodule Ebx_flags : sig ... end
Sourcemodule Ecx_flags : sig ... end
Sourcetype t = {
  1. max_subleaf : int;
  2. ebx : Ebx_flags.t;
  3. ecx : Ecx_flags.t;
}
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval retrieve : unit -> t
Sourcemodule For_testing : sig ... end
OCaml

Innovation. Community. Security.