{"blog_url":"https://espresso3389.hatenablog.com/","blog_title":"espresso3389\u306e\u65e5\u8a18","provider_name":"Hatena Blog","author_name":"espresso3389","version":"1.0","type":"rich","title":"cvttss2si","url":"https://espresso3389.hatenablog.com/entry/20070519/1179578449","provider_url":"https://hatena.blog","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fespresso3389.hatenablog.com%2Fentry%2F20070519%2F1179578449\" title=\"cvttss2si - espresso3389\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u4ed5\u65b9\u304c\u306a\u3044\u306e\u3067\u3001\u30a2\u30bb\u30f3\u30d6\u30e9\u306b\u3054\u767b\u5834\u3044\u305f\u3060\u304f\u3053\u3068\u306b\u3002 int f2i(float f) { _asm {cvttss2si eax, f} } int main(int argc, char* argv[]) { float f = atof(argv[1]); return f2i(f); } \u305d\u3046\u3059\u308b\u3068\u3001\u610f\u5916\u306b\u3082\u30b3\u30f3\u30d1\u30af\u30c8\u306a\u30b3\u30fc\u30c9\u304c\u751f\u6210\u3055\u308c\u307e\u3057\u305f\u3002 mov eax, DWORD PTR _argv$[esp-4] mov ecx, DWORD PTR [eax+4] push ecx call _atof fstp DWORD PTR _f$[esp] add esp, 4 cvttss2s\u2026","image_url":null,"categories":[],"published":"2007-05-19 21:40:49","width":"100%","author_url":"https://blog.hatena.ne.jp/espresso3389/"}