[AD] [ alleg-Patches-1107987 ] CPU detection for OSX

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Patches item #1107987, was opened at 2005-01-23 22:41
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305665&aid=1107987&group_id=5665

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Peter Hull (peterhull90)
Assigned to: Nobody/Anonymous (nobody)
Summary: CPU detection for OSX

Initial Comment:
As requested in todo.txt, a patch to do CPU detection for 
Mac. Note this is Mac-specific rather than PowerPC specific, 
as it uses a Mach-O function from the underlying OS. So, if 
you were using PPC Linux, it wouldn't help!
I've included a zipfile, which contains
* A patch for makefile.osx, test.c and system.h
* A jpeg showing output from the 'test' program
* A new file, pcpu.c, which should go into src/macosx
I also included some #defines in system.h for Intel folks, so 
that CPU_FAMILY_I386 is an alias for '3' and so on.

Cheers,
Pete


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305665&aid=1107987&group_id=5665




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/