It is currently Tue Apr 07, 2020 8:15 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: When do you consider an opcode safe to use ?
PostPosted: Thu Mar 01, 2012 1:56 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3606
Location: Netherlands
I was just wondering ...
How long after the introduction of an opcode (MMX / SSE / SSE2 etc.) would you consider it 'safe' to use ?
With that I mean that you can expect most computers will support it.


Top
 Profile  
Reply with quote  
 Post subject: Re: When do you consider an opcode safe to use ?
PostPosted: Thu Mar 01, 2012 2:59 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Aug 15, 2009 6:59 pm
Posts: 1252
Actualy you shoudnt. You should allways test if the instruction set extension is available on the CPU. After all they are optional and not all CPU's have them all. Its possible for example that a CPU supports SSE2 but not MMX because MMX is basicly outdated and replaced by SSE2. There are VIA x86 CPUs that do support some but not all.


Top
 Profile  
Reply with quote  
 Post subject: Re: When do you consider an opcode safe to use ?
PostPosted: Thu Mar 01, 2012 7:19 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Jul 09, 2011 7:57 am
Posts: 276
valve is doing a monthly survey with his software steam. You must keep in mind that steam users are gamers who upgrade their hardware.

http://store.steampowered.com/hwsurvey

Quote:
FCMOV 100.00% 0.00%
SSE2 99.76% 0.00%
SSE3 99.05% +0.11%
NTFS 93.81% -0.03%
SSE4.1 51.26% +0.73%
SSE4.2 25.64% +1.10%
HyperThreading 22.00% +1.00%
SSE4a 16.06% +0.19%


99% for sse3 (2004) but only 51% for sse4 (2006)

Id Software made a virtual SIMD processor to handle dynamically those extensions, a nice c++ code. the source is released under GPL :

https://github.com/id-Software/DOOM-3/t ... idlib/math


Top
 Profile  
Reply with quote  
 Post subject: Re: When do you consider an opcode safe to use ?
PostPosted: Thu Mar 01, 2012 10:02 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3606
Location: Netherlands
xorc1zt wrote:
99% for sse3 (2004) but only 51% for sse4 (2006)

Thanks. Nice to know this kind of information :)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye