/** * methods
*/ struct spa_cpu_methods { /** the version of the methods. This can be used to expand this
structure in the future */ #define SPA_VERSION_CPU_METHODS 2
uint32_t version;
/** get CPU flags */
uint32_t (*get_flags) (void *object);
/** force CPU flags, use SPA_CPU_FORCE_AUTODETECT to autodetect CPU flags */ int (*force_flags) (void *object, uint32_t flags);
/** get number of CPU cores */
uint32_t (*get_count) (void *object);
/** get maximum required alignment of data */
uint32_t (*get_max_align) (void *object);
/* check if running in a VM. Since:1 */
uint32_t (*get_vm_type) (void *object);
/* denormals will be handled as zero, either with FTZ or DAZ.
* Since:2 */ int (*zero_denormals) (void *object, bool enable);
};
/** keys can be given when initializing the cpu handle */ #define SPA_KEY_CPU_FORCE "cpu.force"/**< force cpu flags */ #define SPA_KEY_CPU_VM_TYPE "cpu.vm.type"/**< force a VM type */ #define SPA_KEY_CPU_ZERO_DENORMALS "cpu.zero.denormals"/**< zero denormals */
/** * \}
*/
#ifdef __cplusplus
} /* extern "C" */ #endif
#endif/* SPA_CPU_H */
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.15 Sekunden
(vorverarbeitet am 2026-04-26)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.