Windowsä¸ã§ãã¹ã¯ãããã¢ããªãéçºãã¦ãã身ã¨ãã¦ã¯ããã®ãã¡C/C++ã§mainé¢æ°ãæ¸ã人ã£ã¦ä¸äººãããªããªããããããã¨æã£ã¦ããããã¡ããç°¡åãªãã¹ãã³ã¼ãã®ããã«ã¯mainé¢æ°ãæ¸ããã»ãã便å©ã ããå ¨ãç¡ããªããããããªããã ãã©ãC/C++ã§mainé¢æ°æ¸ãã¦æçµææç©ã¨ãã¦ãªãªã¼ã¹ãããæ©ä¼ã¯ãããç¡ããªãæ¥ã¯è¿ãã C/C++ã®åªä½æ§ã¯ããã©ã¼ãã³ã¹ã¨ãä½ä½ã®APIãç´æ¥å©ããã¨ããããªãããã®æ§è½ãæ´»ããã«ã¯è¦æè¦æã§C/C++ãã¤ãã£ãã³ã¼ããDLLåãã¦å¼ã³åºãã°ååã§ãã¢ããªã±ã¼ã·ã§ã³å ¨ä½ãC/C++ã§æ¸ãå¿ è¦ã¯å ¨ããªããã¢ããªå ¨ä½ãæ§ç¯ããè½åã¯å§åçã«C#/.NET Framewokã®ã»ããåªãã¦ãããã¤ã¾ãC/C++ã§mainé¢æ°ãæ¸ãå¿ è¦ã¯ãªããåã«DLLã¨ãã¦é¢æ°ãã¨ã¯ã¹ãã¼ãã§ããã°ååã£ã¦ãã¨ã ã ããã¯ç´ç²ãªC/C++ã®è©±ãããªãããã©ãã
ä¸çªå³ç«¯ã®ç«ã£ã¦ãããããä½ç½®(RightMostBit)ãæ±ããã³ã¼ãã§éãã®ãªãããªã¼ã¨æ¢ãã¦ãããããã®ã£ã£ã£ãããã³ã¼ãã«åºä¼ã£ã¦ãã¾ã£ãã®ã§ãç´¹ä»ã2ch ã®ãããæ¼ç®ã¹ã¬ã§ 32bit å¤ã®ã³ã¼ãã«åºä¼ã£ã¦è¡æãåãã¦ããã®å¾ 64bit å¤çã®ãã³ããè¦ã¤ããã®ã§ã³ã¼ããæ¸ãã¦ã¿ã¾ããã ãã®åé¡ã¯ ããã«ã¼ã®ãã®ãã¿âæ¬ç©ã®ããã°ã©ãã¯ããã«ãã¦åé¡ã解ãã (Google book search ã§åè Hacker's delight ãèªããã®ã§ããã§æ¸ã¾ãã) 㧠number of trailing zeros (ntz) ã¨ãã¦ç´¹ä»ããã¦ãã¾ããbit ã§èããã¨ãã«å³å´ã« 0 ãããã¤ããããæ°ãããã®ã1 ã 㨠0ã2 ã 㨠1ã0x80 ãªã 7ã12 ãªã 2 ã¨ãã£ããããã0 ã®ã¨ãã«è¡¨é¡ã©ããã®åé¡ã¨ãã¦èããã¨ããã¤ãè¿ãã®ï¼ã£ã¦ãã¨ã«ãªãã®ã§ã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}