Hi Steve,

On Tue, Jun 14, 2011 at 10:47 PM, S. Erisman <seris...@serisman.com> wrote:

> Marc,
>
>
> On 6/14/2011 7:01 PM, Marc-André Moreau wrote:
>
>> Hi Steve,
>>
>> I noticed the addition of cpuid.h, which is not found on Mac OS X. Is
>> there a more portable alternative for detecting SSE support level? Can't the
>> cpuinfo instruction be used for this?
>>
>
> That's weird.  I was under the assumption that cpuid.h was provided by
> default by GCC.  Are you using a different compiler?
>

Nope, it is using GCC on Mac OS X, it doesn't find the header file

>
> Do you have any additional information about the cpuinfo instruction you
> are talking about?  I Googled it and didn't find much promising.  Or...
> maybe you are talking about parsing /proc/cpuinfo.  If so, there are a lot
> of comments out there about that being a bad idea.
>

Sorry, my bad, the real instruction name is cpuid, not cpuinfo :(

http://softpixel.com/~cwright/programming/simd/cpuid.php

>
> One possibility is to roll our own cpuid instruction based on information
> found here and put it in our rfx_sse.h file:
>    http://softpixel.com/~cwright/programming/simd/cpuid.php
>
> Yes, this is what I was thinking


> On the Windows side, we can probably just use __cpuid found in <intrin.h>:
>    http://msdn.microsoft.com/en-us/library/hskdteyh.aspx
> Do you know if Mac OS X has this file?  GCC didn't seem to find it on my
> Ubuntu machines.
>

I don't think so, I think those are different intrinsics. Maybe wrappers
exist though.

>
> Thanks,
>  Steve
>
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Freerdp-devel mailing list
Freerdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel

Reply via email to