Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 4004

Show
Ignore:
Timestamp:
10/13/08 11:32:36 (1 month ago)
Author:
Don Clugston
Message:

One more sacrifice to the steaming turd that is GDC.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/math/internal/Cache.d

    r3999 r4004  
    172172    bool preferPentium1() { return family < 6 || (family==6 && !probablyIntel); } 
    173173 
    174 private:     
    175174public: 
    176175    /// Processor type (vendor-dependent). 
     
    178177    uint stepping, model, family; 
    179178    uint numCacheLevels = 1; 
    180     private: 
     179private: 
    181180    bool probablyIntel; // true = _probably_ an Intel processor, might be faking 
    182181    bool probablyAMD; // true = _probably_ an AMD processor 
     
    269268    } 
    270269 
    271 version(D_InlineAsm_X86) { 
     270version(GNU) { 
     271    // GDC is a filthy liar. It can't actually do inline asm. 
     272} else version(D_InlineAsm_X86) { 
    272273// Note that this code will also work for Itanium, after changing the 
    273274// register names in the asm code.