Annotation of GNUtools/cctools/include/stuff/best_arch.h, revision 1.1.1.1

1.1       root        1: #include <mach/machine.h>
                      2: 
                      3: /*
                      4:  * cpusubtype_findbestarch() is passed a cputype and cpusubtype and a set of
                      5:  * fat_arch structs and selects the best one that matches (if any) and returns
                      6:  * a pointer to that fat_arch struct (or NULL).  The fat_arch structs must be
                      7:  * in the host byte sex and correct such that the fat_archs really points to
                      8:  * enough memory for nfat_arch structs.  It is possible that this routine could
                      9:  * fail if new cputypes or cpusubtypes are added and an old version of this
                     10:  * routine is used.  But if there is an exact match between the cputype and
                     11:  * cpusubtype and one of the fat_arch structs this routine will always succeed.
                     12:  */
                     13: extern struct fat_arch * cpusubtype_findbestarch(
                     14:     cpu_type_t cputype,
                     15:     cpu_subtype_t cpusubtype,
                     16:     struct fat_arch *fat_archs,
                     17:     unsigned long nfat_archs);
                     18: 
                     19: /*
                     20:  * cpusubtype_combine() returns the resulting cpusubtype when combining two
                     21:  * differnet cpusubtypes for the specified cputype.  If the two cpusubtypes
                     22:  * can't be combined (the specific subtypes are mutually exclusive) -1 is
                     23:  * returned indicating it is an error to combine them.  This can also fail and
                     24:  * return -1 if new cputypes or cpusubtypes are added and an old version of
                     25:  * this routine is used.  But if the cpusubtypes are the same they can always
                     26:  * be combined and this routine will return the cpusubtype pass in.
                     27:  */
                     28: extern cpu_subtype_t cpusubtype_combine(
                     29:     cpu_type_t cputype,
                     30:     cpu_subtype_t cpusubtype1,
                     31:     cpu_subtype_t cpusubtype2);

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.