Changeset 1084

Show
Ignore:
Timestamp:
06/24/09 12:29:17 (9 months ago)
Author:
gbooker
Message:

Patch by zhe to correct altivec detection
Fixes #416

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CommonUtils.c

    r1068 r1084  
    407407                int err = Gestalt(gestaltPowerPCProcessorFeatures, &response); 
    408408                 
    409                 altivec = !err && ((response & gestaltPowerPCHasVectorInstructions) != 0); 
     409                altivec = !err && ((response & (1 << gestaltPowerPCHasVectorInstructions)) != 0); 
    410410        } 
    411411