22 * @author Bénédikt Tran
33 * @seealso Tools/cpuinfo/xsave_features_gen.py
44 *
5- * XSAVE state components (XCR0 control register)
5+ * XSAVE state components (XCR0 control register).
6+ *
7+ * See https://en.wikipedia.org/wiki/Control_register#XCR0_and_XSS.
68 */
79#ifndef Py_INTERNAL_CPUINFO_XSAVE_FEATURES_H
810#define Py_INTERNAL_CPUINFO_XSAVE_FEATURES_H
@@ -24,14 +26,14 @@ import os
2426import sys
2527
2628ROOT = os.getcwd()
27- TOOL = os.path.join(ROOT, ' Tools/cpuinfo/xsave_features_gen.py' )
29+ TOOL = os.path.join(ROOT, " Tools/cpuinfo/xsave_features_gen.py" )
2830TOOL = os.path.realpath(TOOL)
2931
3032if not os.path.exists(TOOL):
3133 raise FileNotFoundError(TOOL)
3234
3335sys.path.insert(0, os.path.dirname(os.path.dirname(TOOL)))
34- module = importlib.import_module(' cpuinfo.xsave_features_gen' )
36+ module = importlib.import_module(" cpuinfo.xsave_features_gen" )
3537print(module.generate_xsave_features_enum("py_xsave_feature_mask"))
3638[python start generated code]*/
3739typedef enum py_xsave_feature_mask {
@@ -41,7 +43,7 @@ typedef enum py_xsave_feature_mask {
4143 Py_XSAVE_MASK_XCR0_AVX512_ZMM_HI256 = 0x00000040 , // bit = 6
4244 Py_XSAVE_MASK_XCR0_AVX512_HI16_ZMM = 0x00000080 , // bit = 7
4345} py_xsave_feature_mask ;
44- /*[python end generated code: output=9a476ed0abbc617b input=78e3d4ff6b796edb ]*/
46+ /*[python end generated code: output=9a476ed0abbc617b input=41f35058299c0118 ]*/
4547// fmt: on
4648
4749#endif // !Py_INTERNAL_CPUINFO_XSAVE_FEATURES_H
0 commit comments