strlen()ã¨memchr()ã®SIMDçãä½ã£ã¦ã¿ã¾ããï¼ ä»åã¯æéããããæ軽ããéè¦ããã®ã§ã¢ã»ã³ããªè¨èªã§ã¯ãªãintrinsicé¢æ°ã使ã£ã¦ãã¾ãï¼ãã®ããVisual Studio 2008, gcc 4.xã®ä¸¡æ¹ã§ã³ã³ãã¤ã«ã§ã32-bit, 64-bit OSä¸ã§åä½ãã¾ãï¼ Windowsã¨Linuxã§ã®ã¿ç¢ºèªãã¦ãã¾ããæããIntel Mac OS Xä¸ã§ãåä½ããã§ããã(sample source)ï¼ ãã³ããã¼ã¯ã¯ã©ã³ãã ãªé·ãã®æååã®å¹³åé·(average length)ãå¤åããã¤ã¤åãã¾ããï¼æ°å¤ã¯1byteãããã«ããã£ãå¦çæéæ¯ã§å°ããã»ã©éããã¨ã表ãã¾ãï¼ strlenã3種é¡(ANSI, BLOG, SSE2)ã¨memchrã2種é¡(ANSI, SSE2)ããã¾ãï¼BLOGã¨ããã®ã¯ä»å試ãã¦ã¿ããã¨ãããã£ããã«ãªã£ãCounting
{{#tags}}- {{label}}
{{/tags}}