{"id":317981,"date":"2021-02-13T21:01:30","date_gmt":"2021-02-13T21:01:30","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=317981"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=317981","title":{"rendered":"\u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0447\u0438\u0441\u043b\u0430 \u0432 \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e SIMD + FPU"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0412\u0430\u0440\u0438\u0430\u043d\u0442 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f <code>double \/ real8<\/code>&nbsp;\u0432 \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c  \u0441 <code>SIMD<\/code>&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c <code>FPU<\/code> \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430. \u041f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 FPU \u0432\u044b\u0437\u0432\u0430\u043d\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c 16 \u0437\u043d\u0430\u0447\u0430\u0449\u0438\u0445 \u0446\u0438\u0444\u0440.<\/p>\n<p>\u0412 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441&nbsp;<code>x64 software conventions<\/code>&nbsp;\u0431\u0443\u0434\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0447\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u043f\u043e\u0434\u043b\u0435\u0436\u0430\u0449\u0438\u0435 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043e \u0432&nbsp;<code>XMM0<\/code>.<\/p>\n<p>\u0411\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&nbsp;<code>x64<\/code>&nbsp;\u0431\u0438\u0442\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u0438&nbsp;<code>x32<\/code>&nbsp;\u0431\u0438\u0442\u043d\u043e\u0439 \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u0438. \u0422\u0430\u043a\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u043e\u0431\u043e\u0438\u0445 \u0434\u0438\u0430\u043b\u0435\u043a\u0442\u043e\u0432.<\/p>\n<p>\u0411\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0435 \/ \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0435 \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432. \u0421\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0437\u0435\u0440\u043a\u0430\u043b\u044c\u043d\u043e \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044e&nbsp;<code>x64 software conventions<\/code>&nbsp;\u0437\u0430 \u0442\u0435\u043c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0447\u0442\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043f\u0440\u0438 \u0432\u044b\u0445\u043e\u0434\u0435 \u0438\u0437 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b.<\/p>\n<p>\u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0447\u0442\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0432\u0430 \u0431\u043b\u043e\u043a\u0430 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442, \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u043f\u0441\u0435\u0432\u0434\u043e\u043d\u0438\u043c\u044b \u0434\u043b\u044f \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434, \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u043f\u0441\u0435\u0432\u0434\u043e\u043d\u0438\u043c\u044b \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0432 \u0441\u0442\u0435\u043a\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0442 \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c \u043a\u0430\u043a\u0443\u044e \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043c\u044b \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \/ \u0447\u0438\u0442\u0430\u0435\u043c:<\/p>\n<pre><code>ROUND_TOWARD_ZERO            equ 11b SIGNIFICANT_BIT_RESET        equ 3Fh<\/code><\/pre>\n<pre><code>LCW          equ word LIExp2       equ dword LIExp10      equ dword LSExp10      equ dword LIUpPathNam  equ dword LILowPathNam equ dword LNamber      equ qword LMulExp2     equ qword LStX         equ tbyte LString      equ xmmword * 2<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0435\u0433\u043c\u0435\u043d\u0442 \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0438, \u043e\u0441\u043e\u0431\u043e \u0441\u0442\u043e\u0438\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432 <code>SIMD<\/code> \u0432\u044b\u0440\u0430\u0432\u043d\u0435\u043d\u044b \u043f\u043e \u043f\u0430\u0440\u0430\u0433\u0440\u0430\u0444\u0443 \u0434\u043b\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f:<\/p>\n<pre><code>.data \tf10m4 real4 4 dup (1.0e-4) \tf10p4 real4 4 dup (1.0e+4) \tf10m2 real4 4 dup (1.0e-2) \tf10p2 real4 4 dup (1.0e+2) \tf10m1 real4 4 dup (1.0e-1) \tf10p1 real4 4 dup (1.0e+1)  \tf0001 real4 0.0, 1.0e-2, 1.0e-1, 1.0 \tf0002 real4 0.0, 0.0,    1.0e+1, 1.0e+1  \ti30h  db 10h dup (30h)    \tf10p8 real4 1.0e+8 \tNoSD  real4 7.0  \tCW0   dw 0F7Fh \tCW1   dw 037Fh \tDotM  dw 652Dh \t \tnamber   real8 -1.234567890123456e+248<\/code><\/pre>\n<p>\u0414\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u0441\u044f \u043e\u0442 \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0441\u0440\u0435\u0434\u044b <code>FPU <\/code>\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u043c\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438, \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435\u043c \u043a \u043d\u0443\u043b\u044e \u0438 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0435\u043d\u0438\u0435\u043c \u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430:<\/p>\n<pre><code>\tfstcw     word ptr[esp - LCW] \tfstp     tbyte ptr[esp - LCW - LStX] \tfldcw      CW0<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0427\u0438\u0441\u043b\u043e \u0432 <code>RAX <\/code>\u0438 \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u0437\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0431\u0438\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u044f \u043c\u043e\u0434\u0443\u043b\u044c \u0427\u0438\u0441\u043b\u0430:<\/p>\n<pre><code>\tmovd      rax, xmm0 \tbtr       rax, SIGNIFICANT_BIT_RESET<\/code><\/pre>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 \u0441\u0442\u0435\u043a \u0441\u0438\u043c\u0432\u043e\u043b &#8216;-&#8216; \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u044f\u044f \u0435\u0433\u043e \u0442\u0440\u0435\u043c\u044f \u043d\u0443\u043b\u0435\u0432\u044b\u043c\u0438 \u0431\u0430\u0439\u0442\u0430\u043c\u0438, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 \u0441\u0442\u0435\u043a \u0437\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0431\u0438\u0442 \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u044f \u0435\u0433\u043e \u0434\u043e \u0431\u0430\u0439\u0442\u0430, \u0430 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u0440\u0430\u043d\u0435\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0435 \u0442\u0440\u0438 \u043d\u0443\u043b\u0435\u0432\u044b\u0445 \u0431\u0430\u0439\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u0432\u043e\u0439\u043d\u043e\u0435 \u0441\u043b\u043e\u0432 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 1 \u0434\u043b\u044f \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0438 0 \u0434\u043b\u044f \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0438 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c \u043c\u043e\u0434\u0443\u043b\u044c \u0447\u0438\u0441\u043b\u0430:<\/p>\n<pre><code>\tmov      dword ptr[esp - LString - dword], 2D000000h ; '-' 00 00 00 \tsetnc     byte ptr[esp - LString - dword - byte]  \tmov      qword ptr[esp - LCW - LStX - LNamber], rax<\/code><\/pre>\n<p>\u0418\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u0447\u0438\u0441\u043b\u0430 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0435\u0435 \u0432 \u0441\u0442\u0435\u043a, \u043e\u0441\u043e\u0431\u043e \u0441\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0447\u0442\u043e \u043f\u0430\u043c\u044f\u0442\u044c \u0432 \u0441\u0442\u0435\u043a\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 &#171;\u0433\u043e\u0440\u044f\u0447\u0430\u044f&#187; \u0438 \u043f\u0440\u0438 &#171;\u043f\u0440\u044f\u043c\u043e\u043c&#187; \u0447\u0442\u0435\u043d\u0438\u0438 \/ \u0437\u0430\u043f\u0438\u0441\u0438, \u0442\u043e \u0435\u0441\u0442\u044c \u0431\u0435\u0437 &#171;\u0441\u043a\u0430\u0447\u043a\u043e\u0432&#187;, \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 \u043a\u044d\u0448 \u043f\u0440\u043e\u043c\u0430\u0445\u0430, \u0442\u043e \u0435\u0441\u0442\u044c \u0447\u0442\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u044c \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e \u0440\u0430\u0432\u043d\u044b \u0434\u0432\u0443\u043c \u0442\u0430\u043a\u0442\u0430\u043c, \u0447\u0442\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0432 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0439 \u0447\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u043c\u0438 \u043d\u043e \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 <code>FPU <\/code>\u044d\u0442\u043e \u043d\u0435 \u0443\u0441\u0442\u0440\u0430\u043d\u0438\u043c\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430:<\/p>\n<pre><code>\tshr       rax, 34h \tsub       eax, 3FFh \tmov      dword ptr[esp - LCW - LStX - LNamber - LIExp2], eax<\/code><\/pre>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0432 <code>FPU <\/code>\u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c 2 (\u0434\u0432\u0443\u0445) \u043f\u043e \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044e 10 (\u0434\u0435\u0441\u044f\u0442\u044c) \u0438 \u0443\u043c\u043d\u043e\u0436\u0430\u0435\u043c \u0435\u0433\u043e \u043d\u0430 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u0427\u0438\u0441\u043b\u0430 \u043f\u043e \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044e 2 (\u0434\u0432\u0430), \u043f\u043e\u043b\u0443\u0447\u0430\u044f \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0427\u0438\u0441\u043b\u0430:<\/p>\n<pre><code>\tfldlg2 \tfimul    dword ptr[esp - LCW - LStX - LNamber - LIExp2]<\/code><\/pre>\n<p>\u0412\u044b\u0447\u0438\u0442\u0430\u0435\u043c \u0438\u0437 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0434\u043e \u0437\u0430\u043f\u044f\u0442\u043e\u0439, \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 \u0441\u0442\u0435\u043a \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u044f \u0435\u0433\u043e \u0432 \u0446\u0435\u043b\u043e\u0435 \u0438 \u043e\u043a\u0440\u0443\u0433\u043b\u044f\u044f \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043d\u0443\u043b\u044f:<\/p>\n<pre><code>\tfsubr    NoSD \tfistp    dword ptr[esp - LCW - LStX - LNamber - LIExp10]<\/code><\/pre>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0432 <code>FPU<\/code> \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c 10 (\u0434\u0435\u0441\u044f\u0442\u0438) \u043f\u043e \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044e 2 (\u0434\u0432\u0430) \u0438 \u0443\u043c\u043d\u043e\u0436\u0430\u0435\u043c \u0435\u0433\u043e \u043d\u0430 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f \u043f\u043e \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044e 10 (\u0434\u0435\u0441\u044f\u0442\u044c), \u043f\u043e\u043b\u0443\u0447\u0430\u044f \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0427\u0438\u0441\u043b\u0430:<\/p>\n<pre><code>\tfldl2t \tfimul    dword ptr[esp - LCW - LStX - LNamber - LIExp10]<\/code><\/pre>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c  \u0432 \u0441\u0442\u0435\u043a \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u044f \u0435\u0433\u043e \u0432 \u0446\u0435\u043b\u043e\u0435 \u0438 \u043e\u043a\u0440\u0443\u0433\u043b\u044f\u044f \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043d\u0443\u043b\u044f:<\/p>\n<pre><code>\tfist     dword ptr[esp - LCW - LStX - LNamber - LIExp10 - LIExp2]<\/code><\/pre>\n<p>\u0412\u044b\u0447\u0438\u0442\u0430\u0435\u043c \u0438\u0437 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u0433\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f \u0446\u0435\u043b\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0434\u0432\u043e\u0438\u0447\u043d\u0443\u044e \u043c\u0430\u043d\u0442\u0438\u0441\u0441\u0443 \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f. \u041e\u0441\u043e\u0431\u043e \u0441\u0442\u043e\u0438\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0447\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <code>f2xm1<\/code> \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u043e 60 \u0442\u0430\u043a\u0442\u043e\u0432 \u0434\u0430\u0436\u0435 \u043d\u0430 <code>Skylake<\/code> \u0438 \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u0435 \u0440\u0430\u0437\u0443\u043c\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c \u043a\u043e\u0434 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0438\u0439 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code>f2xm1<\/code>:<\/p>\n<pre><code>\tfisub    dword ptr[esp - LCW - LStX - LNamber - LIExp10 - LIExp2] \tf2xm1<\/code><\/pre>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0432 <code>\u0425\u041c\u041c0<\/code> \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u044f \u0435\u0433\u043e \u0432 <code>float<\/code>:<\/p>\n<pre><code>\tcvtsi2ss xmm0, dword ptr[esp - LCW - LStX - LNamber - LIExp10]<\/code><\/pre>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0432 EAX \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f, \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0435\u0433\u043e \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0435\u0435 \u0432 \u0441\u0442\u0435\u043a:<\/p>\n<pre><code>\tmov       eax, dword ptr[esp - LCW - LStX - LNamber - LIExp10 - LIExp2] \tadd        ax, 3FFh \tshl       rax, 34h \tmov            qword ptr[esp - LCW - LStX - LNamber - LMulExp2], rax<\/code><\/pre>\n<p>\u0421\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0439 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0447\u0438\u0441\u043b\u0430 \u0441 \u043d\u0443\u043b\u0435\u043c \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u0430 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u043c \u0443\u0447\u0430\u0441\u0442\u043e\u043a \u043a\u043e\u0434\u0430 \u043f\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0441\u0442\u0440\u043e\u043a\u0438 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b:<\/p>\n<pre><code>\txor       edx, edx \tsubss    xmm0, NoSD \tpxor     xmm1, xmm1 \tcomiss   xmm1, xmm0 jz @f<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0432\u0435\u043a\u0442\u043e\u0440 \u0438\u0437 \u0447\u0435\u0442\u044b\u0440\u0435\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0435\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044c:<\/p>\n<pre><code>\tshufps   xmm0, xmm0, 0 \tsubps    xmm1, xmm0 \tmaxps    xmm0, xmm1<\/code><\/pre>\n<p>\u0412\u044b\u0434\u0435\u043b\u044f\u0435\u043c \u0438\u0437 \u0442\u0440\u0435\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0427\u0438\u0441\u043b\u0430 \u0442\u0440\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0435\u0434\u0438\u043d\u0438\u0446 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0438 \u0441\u043e\u0442\u0435\u043d, \u0430 \u043e\u0434\u043d\u043e \u0438\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043e\u0431\u043d\u0443\u043b\u044f\u0435\u043c \u0437\u0430 \u043d\u0435\u043d\u0430\u0434\u043e\u0431\u043d\u043e\u0441\u0442\u044c\u044e:<\/p>\n<pre><code>\tmulps    xmm0, xmmword ptr f0001 \troundps  xmm0, xmm0, ROUND_TOWARD_ZERO \tpshufd   xmm1, xmm0, 10010000b \tmulps    xmm1, xmmword ptr f0002 \tsubps    xmm0, xmm1<\/code><\/pre>\n<p>\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0427\u0438\u0441\u043b\u0430 \u0432 \u0434\u0432\u043e\u0439\u043d\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 \u0438 \u0443\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0438\u0445 \u0431\u0430\u0439\u0442\u044b:<\/p>\n<pre><code>\tcvtps2dq xmm0, xmm0 \tpxor     xmm1, xmm1 \tpcmpeqd  xmm1, xmm0 \tpackusdw xmm0, xmm0 \tpackuswb xmm0, xmm0<\/code><\/pre>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 <code>AX <\/code>\u0441\u0442\u0440\u043e\u043a\u0443 <code>'\u0435-'<\/code> <code>'\u0435+'<\/code> \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0437\u043d\u0430\u043a\u0430 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b:<\/p>\n<pre><code>\tmov       eax, 2B65h \tcmovc      ax, DotM<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0427\u0438\u0441\u043b\u0430 \u0438 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u043c \u0435\u0435 \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 <code>RDX<\/code>:<\/p>\n<pre><code>\tmovmskps  ecx, xmm1 \tbsr       ecx, ecx \tlea       ecx,[ecx * 8 - 8] \tmovd      edx, xmm0 \tadd       edx, 30303000h \tshrd      rdx, rdx, cl        \tmov        dx,  ax<\/code><\/pre>\n<p>\u0423\u043c\u043d\u043e\u0436\u0430\u0435\u043c \u043c\u0430\u043d\u0442\u0438\u0441\u0441\u0443 \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f \u043d\u0430 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f:<\/p>\n<pre><code>@@:\tfmul     qword ptr[esp - LCW - LStX - LNamber - LMulExp2]<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a \u043c\u0430\u043d\u0442\u0438\u0441\u0441\u0435 \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u043e\u043b\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f:<\/p>\n<pre><code>\tfadd     qword ptr[esp - LCW - LStX - LNamber - LMulExp2]<\/code><\/pre>\n<p>\u0423\u043c\u043d\u043e\u0436\u0430\u0435\u043c \u043f\u043e\u043b\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f \u043d\u0430 \u043c\u043e\u0434\u0443\u043b\u044c \u0427\u0438\u0441\u043b\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0447\u0438\u0441\u043b\u043e \u0441 \u0432\u043e\u0441\u044c\u043c\u0438 \u0437\u043d\u0430\u0447\u0430\u0449\u0438\u043c\u0438 \u0447\u0438\u0441\u043b\u0430\u043c\u0438 \u0434\u043e \u0437\u0430\u043f\u044f\u0442\u043e\u0439 \u0438 \u0432\u043e\u0441\u044c\u043c\u044c\u044e \u043f\u043e\u0441\u043b\u0435:<\/p>\n<pre><code>\tfmul     qword ptr[esp - LCW - LStX - LNamber]<\/code><\/pre>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 \u0441\u0442\u0435\u043a \u0432\u0435\u0440\u0445\u043d\u0438\u0435 \u0432\u043e\u0441\u0435\u043c\u044c \u0437\u043d\u0430\u043a\u043e\u0432 \u0446\u0435\u043b\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0427\u0438\u0441\u043b\u0430 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u044f \u0435\u0433\u043e \u0432 \u0446\u0435\u043b\u043e\u0435 \u0438 \u043e\u043a\u0440\u0443\u0433\u043b\u044f\u044f \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043d\u0443\u043b\u044f:<\/p>\n<pre><code>\tfist     dword ptr[esp - LCW - LStX - LILowPathNam - LIUpPathNam]<\/code><\/pre>\n<p>\u0412\u044b\u0447\u0438\u0442\u0430\u0435\u043c \u0438\u0437 \u0427\u0438\u0441\u043b\u0430 \u0446\u0435\u043b\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0438 \u0443\u043c\u043d\u043e\u0436\u0430\u0435\u043c \u0435\u0435 \u043d\u0430 10\u0435+8 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u044f \u043d\u0438\u0436\u043d\u0438\u0435 \u0432\u043e\u0441\u0435\u043c\u044c \u0447\u0438\u0441\u0435\u043b \u0447\u0438\u0441\u043b\u0430 \u0432 \u0446\u0435\u043b\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0427\u0438\u0441\u043b\u0430:<\/p>\n<pre><code>\tfisub    dword ptr[esp - LCW - LStX - LILowPathNam - LIUpPathNam] \tfmul     f10p8<\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435 \u043a \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u043c\u0443 \u0447\u0438\u0441\u043b\u0443 \u0438 \u0432\u044b\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043d\u0438\u0436\u043d\u0438\u0435 \u0432\u043e\u0441\u0435\u043c\u044c \u0447\u0438\u0441\u0435\u043b \u0427\u0438\u0441\u043b\u0430 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u044f \u0435\u0433\u043e \u0432 \u0446\u0435\u043b\u043e\u0435 \u0438 \u043e\u043a\u0440\u0443\u0433\u043b\u044f\u044f \u0432 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043e \u0447\u0438\u0441\u043b\u0430:<\/p>\n<pre><code>\tfldcw      CW1 \tfistp    dword ptr[esp - LCW - LStX - LIUpPathNam]<\/code><\/pre>\n<p>\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u0440\u0435\u0434\u0443 <code>FPU<\/code>:<\/p>\n<pre><code>\tfld      tbyte ptr[esp - LCW - LStX] \tfldcw     word ptr[esp - LCW]<\/code><\/pre>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0432\u0435\u0440\u0445\u043d\u044e\u044e \u0438 \u043d\u0438\u0436\u043d\u044e\u044e \u0447\u0430\u0441\u0442\u044c \u0427\u0438\u0441\u043b\u0430 \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 <code>\u0425\u041c\u041c0<\/code> \u0438 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0438\u0445 \u0432 <code>float<\/code>:<\/p>\n<pre><code>\tmovq     xmm0, qword ptr[esp - LCW - LStX - LIUpPathNam - LILowPathNam] \tcvtdq2ps xmm0, xmm0<\/code><\/pre>\n<p>\u0420\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c \u0432\u0435\u0440\u0445\u043d\u044e\u044e \u0438 \u043d\u0438\u0436\u043d\u044e\u044e \u0447\u0430\u0441\u0442\u044c \u0427\u0438\u0441\u043b\u0430 \u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0435 \u0447\u0430\u0441\u0442\u0438:<\/p>\n<pre><code>\tmovaps   xmm1, xmm0 \tmulps    xmm0, xmmword ptr f10m4 \troundps  xmm0, xmm0, ROUND_TOWARD_ZERO \tmovaps   xmm2, xmm0 \tmulps    xmm2, xmmword ptr f10p4 \tsubps    xmm1, xmm2 \tunpcklps xmm0, xmm1<\/code><\/pre>\n<p>\u0420\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c \u0447\u0435\u0442\u044b\u0440\u0435 \u0447\u0430\u0441\u0442\u0438 \u0427\u0438\u0441\u043b\u0430 \u043d\u0430 \u0432\u043e\u0441\u0435\u043c\u044c \u0447\u0430\u0441\u0442\u0435\u0439:<\/p>\n<pre><code>\tmovaps   xmm1, xmm0 \tmulps    xmm0, xmmword ptr f10m2 \troundps  xmm0, xmm0, ROUND_TOWARD_ZERO \tmovaps   xmm2, xmm0 \tmulps    xmm2, xmmword ptr f10p2 \tsubps    xmm1, xmm2<\/code><\/pre>\n<p>\u0420\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c \u043d\u0438\u0436\u043d\u0438\u0435 \u0447\u0435\u0442\u044b\u0440\u0435 \u0447\u0430\u0441\u0442\u0438 \u0427\u0438\u0441\u043b\u0430 \u043d\u0430 \u0432\u043e\u0441\u0435\u043c\u044c \u0447\u0438\u0441\u0435\u043b \u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u0438\u0445 \u0432 \u0432\u043e\u0441\u0435\u043c\u044c \u0446\u0435\u043b\u044b\u0445 \u0441\u043b\u043e\u0432:<\/p>\n<pre><code>\tmovaps   xmm2, xmm1 \tmulps    xmm1, xmmword ptr f10m1 \troundps  xmm1, xmm1, ROUND_TOWARD_ZERO \tmovaps   xmm3, xmm1 \tmulps    xmm3, xmmword ptr f10p1 \tsubps    xmm2, xmm3\t \tcvtps2dq xmm1, xmm1 \tcvtps2dq xmm2, xmm2 \tpslld    xmm2, 8 \tpaddb    xmm1, xmm2<\/code><\/pre>\n<p>\u0420\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c \u0432\u0435\u0440\u0445\u043d\u0438\u0435 \u0447\u0435\u0442\u044b\u0440\u0435 \u0447\u0430\u0441\u0442\u0438 \u0427\u0438\u0441\u043b\u0430 \u043d\u0430 \u0432\u043e\u0441\u0435\u043c\u044c \u0447\u0438\u0441\u0435\u043b \u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u0438\u0445 \u0432 \u0432\u043e\u0441\u0435\u043c\u044c \u0446\u0435\u043b\u044b\u0445 \u0441\u043b\u043e\u0432:<\/p>\n<pre><code>\tmovaps   xmm2, xmm0 \tmulps    xmm0, xmmword ptr f10m1 \troundps  xmm0, xmm0, ROUND_TOWARD_ZERO \tmovaps   xmm3, xmm0 \tmulps    xmm3, xmmword ptr f10p1 \tsubps    xmm2, xmm3 \tcvtps2dq xmm0, xmm0 \tcvtps2dq xmm2, xmm2 \tpslld    xmm2, 8 \tpaddb    xmm0, xmm2<\/code><\/pre>\n<p>\u0421\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c \u0432\u0435\u0440\u0445\u043d\u044e\u044e \u0438 \u043d\u0438\u0436\u043d\u044e\u044e \u0447\u0430\u0441\u0442\u044c \u0427\u0438\u0441\u043b\u0430:<\/p>\n<pre><code>\tpslld    xmm1, 16 \tpaddb    xmm0, xmm1<\/code><\/pre>\n<p>\u0412\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0434\u043b\u0438\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0431\u0430\u0439\u0442\u0430\u0445:<\/p>\n<pre><code>\tpxor     xmm3, xmm3 \tpcmpeqb  xmm3, xmm0 \tpmovmskb  eax, xmm3 \tbts       eax, 10h \tbsr       eax, eax<\/code><\/pre>\n<p>\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u0447\u0438\u0441\u043b\u0430 \u0432 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438\u0445 \u0432 \u0441\u0442\u0435\u043a:<\/p>\n<pre><code>\tpaddb    xmm0, xmmWord ptr i30h \tmovdqu   [esp - LString + byte], xmm0<\/code><\/pre>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0427\u0438\u0441\u043b\u0430 \u0432 \u0441\u0442\u0435\u043a:<\/p>\n<pre><code>\tmov      qword ptr[esp - LString + byte + eax], rdx<\/code><\/pre>\n<p>\u0412\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0434\u043b\u0438\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0438 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0427\u0438\u0441\u043b\u0430:<\/p>\n<pre><code>\tmovd     xmm0, rdx \tpxor     xmm1, xmm1 \tpcmpeqb  xmm1, xmm0 \tpmovmskb  edx, xmm1 \tbsf       edx, edx \tlea       eax,[eax + edx + word + byte]<\/code><\/pre>\n<p>\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b &#8216;.&#8217; \u043c\u0435\u0436\u0434\u0443 \u043f\u0435\u0440\u0432\u044b\u043c \u0438 \u0432\u0442\u043e\u0440\u044b\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u043c \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<pre><code>\tmov     dl,[esp - LString + byte] \tmov     dh,'.' \tmov        [esp - LString], dx<\/code><\/pre>\n<p>\u0412\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u043d\u0443\u044e \u0434\u043b\u0438\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<pre><code>\tmov     ecx,   dword ptr[esp - LString - dword - byte] \tsub     eax, ecx<\/code><\/pre>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u0427\u0438\u0441\u043b\u0430 \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b <code>\u0425\u041c\u041c1 <\/code>\u0438 <code>\u0425\u041c\u041c2<\/code>:<\/p>\n<pre><code>\tmovdqu xmm1, xmmword ptr[esp - LString +   ecx - byte] \tmovdqu xmm2, xmmword ptr[esp - LString +   ecx - byte + xmmword]<\/code><\/pre>\n<p>\u0414\u0443\u0431\u043b\u0438\u0440\u0443\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u0438\u043d\u044b \u0427\u0438\u0441\u043b\u0430 \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 <code>ECX<\/code>:<\/p>\n<pre><code>\tmov     ecx, eax<\/code><\/pre>\n<p>\u0417\u0430\u0447\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0435\u0441\u043b\u0438 \u0440\u0430\u043d\u0435\u0435 \u0442\u044b \u0443\u0436\u0435 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u043b \u043a\u043e\u0434 \u043f\u0440\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u044f\u0432\u0438\u043b \u0447\u0442\u043e \u043e\u043d \u0441\u0430\u043c\u044b\u0439 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 &#8212; \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0435\u0449\u0435 \u0431\u044b\u0441\u0442\u0440\u0435\u0439.<\/p>\n<p>\u0427\u0435\u043c \u043e\u043d \u043b\u0443\u0447\u0448\u0435 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e &#8212; \u0432 \u044d\u0442\u043e\u043c \u043a\u043e\u0434\u0435 \u0432\u0435\u043a\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0440\u0430\u0437\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0427\u0438\u0441\u043b\u0430 \u043d\u0430 \u0447\u0438\u0441\u043b\u0430.<\/p>\n<p>\u041f\u043e\u0447\u0435\u043c\u0443 \u0432 \u043d\u0435\u043c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f <code>FPU <\/code>\u0438 <code>SIMD <\/code>&#8212; \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 <code>FPU <\/code>\u0435\u0441\u0442\u044c \u0440\u0435\u0436\u0438\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0438\u0437\u0432\u043b\u0435\u0447\u044c 16 \u0437\u043d\u0430\u0447\u0430\u0449\u0438\u0445 \u0446\u0438\u0444\u0440.<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/542270\/\"> https:\/\/habr.com\/ru\/post\/542270\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0412\u0430\u0440\u0438\u0430\u043d\u0442 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f <code>double \/ real8<\/code>&nbsp;\u0432 \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c  \u0441 <code>SIMD<\/code>&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c <code>FPU<\/code> \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430. \u041f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 FPU \u0432\u044b\u0437\u0432\u0430\u043d\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c 16 \u0437\u043d\u0430\u0447\u0430\u0449\u0438\u0445 \u0446\u0438\u0444\u0440.<\/p>\n<p>\u0412 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441&nbsp;<code>x64 software conventions<\/code>&nbsp;\u0431\u0443\u0434\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0447\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u043f\u043e\u0434\u043b\u0435\u0436\u0430\u0449\u0438\u0435 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043e \u0432&nbsp;<code>XMM0<\/code>.<\/p>\n<p>\u0411\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&nbsp;<code>x64<\/code>&nbsp;\u0431\u0438\u0442\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u0438&nbsp;<code>x32<\/code>&nbsp;\u0431\u0438\u0442\u043d\u043e\u0439 \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u0438. \u0422\u0430\u043a\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u043e\u0431\u043e\u0438\u0445 \u0434\u0438\u0430\u043b\u0435\u043a\u0442\u043e\u0432.<\/p>\n<p>\u0411\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0435 \/ \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0435 \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432. \u0421\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0437\u0435\u0440\u043a\u0430\u043b\u044c\u043d\u043e \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044e&nbsp;<code>x64 software conventions<\/code>&nbsp;\u0437\u0430 \u0442\u0435\u043c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0447\u0442\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043f\u0440\u0438 \u0432\u044b\u0445\u043e\u0434\u0435 \u0438\u0437 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b.<\/p>\n<p>\u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0447\u0442\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0432\u0430 \u0431\u043b\u043e\u043a\u0430 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442, \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u043f\u0441\u0435\u0432\u0434\u043e\u043d\u0438\u043c\u044b \u0434\u043b\u044f \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434, \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u043f\u0441\u0435\u0432\u0434\u043e\u043d\u0438\u043c\u044b \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0432 \u0441\u0442\u0435\u043a\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0442 \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c \u043a\u0430\u043a\u0443\u044e \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043c\u044b \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \/ \u0447\u0438\u0442\u0430\u0435\u043c:<\/p>\n<pre><code>ROUND_TOWARD_ZERO            equ 11b SIGNIFICANT_BIT_RESET        equ 3Fh<\/code><\/pre>\n<pre><code>LCW          equ word LIExp2       equ dword LIExp10      equ dword LSExp10      equ dword LIUpPathNam  equ dword LILowPathNam equ dword LNamber      equ qword LMulExp2     equ qword LStX         equ tbyte LString      equ xmmword * 2<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0435\u0433\u043c\u0435\u043d\u0442 \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0438, \u043e\u0441\u043e\u0431\u043e \u0441\u0442\u043e\u0438\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432 <code>SIMD<\/code> \u0432\u044b\u0440\u0430\u0432\u043d\u0435\u043d\u044b \u043f\u043e \u043f\u0430\u0440\u0430\u0433\u0440\u0430\u0444\u0443 \u0434\u043b\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f:<\/p>\n<pre><code>.data \tf10m4 real4 4 dup (1.0e-4) \tf10p4 real4 4 dup (1.0e+4) \tf10m2 real4 4 dup (1.0e-2) \tf10p2 real4 4 dup (1.0e+2) \tf10m1 real4 4 dup (1.0e-1) \tf10p1 real4 4 dup (1.0e+1)  \tf0001 real4 0.0, 1.0e-2, 1.0e-1, 1.0 \tf0002 real4 0.0, 0.0,    1.0e+1, 1.0e+1  \ti30h  db 10h dup (30h)    \tf10p8 real4 1.0e+8 \tNoSD  real4 7.0  \tCW0   dw 0F7Fh \tCW1   dw 037Fh \tDotM  dw 652Dh \t \tnamber   real8 -1.234567890123456e+248<\/code><\/pre>\n<p>\u0414\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u0441\u044f \u043e\u0442 \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0441\u0440\u0435\u0434\u044b <code>FPU <\/code>\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u043c\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438, \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435\u043c \u043a \u043d\u0443\u043b\u044e \u0438 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0435\u043d\u0438\u0435\u043c \u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430:<\/p>\n<pre><code>\tfstcw     word ptr[esp - LCW] \tfstp     tbyte ptr[esp - LCW - LStX] \tfldcw      CW0<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0427\u0438\u0441\u043b\u043e \u0432 <code>RAX <\/code>\u0438 \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u0437\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0431\u0438\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u044f \u043c\u043e\u0434\u0443\u043b\u044c \u0427\u0438\u0441\u043b\u0430:<\/p>\n<pre><code>\tmovd      rax, xmm0 \tbtr       rax, SIGNIFICANT_BIT_RESET<\/code><\/pre>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 \u0441\u0442\u0435\u043a \u0441\u0438\u043c\u0432\u043e\u043b &#8216;-&#8216; \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u044f\u044f \u0435\u0433\u043e \u0442\u0440\u0435\u043c\u044f \u043d\u0443\u043b\u0435\u0432\u044b\u043c\u0438 \u0431\u0430\u0439\u0442\u0430\u043c\u0438, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 \u0441\u0442\u0435\u043a \u0437\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0431\u0438\u0442 \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u044f \u0435\u0433\u043e \u0434\u043e \u0431\u0430\u0439\u0442\u0430, \u0430 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u0440\u0430\u043d\u0435\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0435 \u0442\u0440\u0438 \u043d\u0443\u043b\u0435\u0432\u044b\u0445 \u0431\u0430\u0439\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u0432\u043e\u0439\u043d\u043e\u0435 \u0441\u043b\u043e\u0432 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 1 \u0434\u043b\u044f \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0438 0 \u0434\u043b\u044f \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0438 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c \u043c\u043e\u0434\u0443\u043b\u044c \u0447\u0438\u0441\u043b\u0430:<\/p>\n<pre><code>\tmov      dword ptr[esp - LString - dword], 2D000000h ; '-' 00 00 00 \tsetnc     byte ptr[esp - LString - dword - byte]  \tmov      qword ptr[esp - LCW - LStX - LNamber], rax<\/code><\/pre>\n<p>\u0418\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u0447\u0438\u0441\u043b\u0430 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0435\u0435 \u0432 \u0441\u0442\u0435\u043a, \u043e\u0441\u043e\u0431\u043e \u0441\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0447\u0442\u043e \u043f\u0430\u043c\u044f\u0442\u044c \u0432 \u0441\u0442\u0435\u043a\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 &#171;\u0433\u043e\u0440\u044f\u0447\u0430\u044f&#187; \u0438 \u043f\u0440\u0438 &#171;\u043f\u0440\u044f\u043c\u043e\u043c&#187; \u0447\u0442\u0435\u043d\u0438\u0438 \/ \u0437\u0430\u043f\u0438\u0441\u0438, \u0442\u043e \u0435\u0441\u0442\u044c \u0431\u0435\u0437 &#171;\u0441\u043a\u0430\u0447\u043a\u043e\u0432&#187;, \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 \u043a\u044d\u0448 \u043f\u0440\u043e\u043c\u0430\u0445\u0430, \u0442\u043e \u0435\u0441\u0442\u044c \u0447\u0442\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u044c \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e \u0440\u0430\u0432\u043d\u044b \u0434\u0432\u0443\u043c \u0442\u0430\u043a\u0442\u0430\u043c, \u0447\u0442\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0432 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0439 \u0447\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u043c\u0438 \u043d\u043e \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 <code>FPU <\/code>\u044d\u0442\u043e \u043d\u0435 \u0443\u0441\u0442\u0440\u0430\u043d\u0438\u043c\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430:<\/p>\n<pre><code>\tshr       rax, 34h \tsub       eax, 3FFh \tmov      dword ptr[esp - LCW - LStX - LNamber - LIExp2], eax<\/code><\/pre>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0432 <code>FPU <\/code>\u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c 2 (\u0434\u0432\u0443\u0445) \u043f\u043e \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044e 10 (\u0434\u0435\u0441\u044f\u0442\u044c) \u0438 \u0443\u043c\u043d\u043e\u0436\u0430\u0435\u043c \u0435\u0433\u043e \u043d\u0430 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u0427\u0438\u0441\u043b\u0430 \u043f\u043e \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044e 2 (\u0434\u0432\u0430), \u043f\u043e\u043b\u0443\u0447\u0430\u044f \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0427\u0438\u0441\u043b\u0430:<\/p>\n<pre><code>\tfldlg2 \tfimul    dword ptr[esp - LCW - LStX - LNamber - LIExp2]<\/code><\/pre>\n<p>\u0412\u044b\u0447\u0438\u0442\u0430\u0435\u043c \u0438\u0437 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0434\u043e \u0437\u0430\u043f\u044f\u0442\u043e\u0439, \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 \u0441\u0442\u0435\u043a \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u044f \u0435\u0433\u043e \u0432 \u0446\u0435\u043b\u043e\u0435 \u0438 \u043e\u043a\u0440\u0443\u0433\u043b\u044f\u044f \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043d\u0443\u043b\u044f:<\/p>\n<pre><code>\tfsubr    NoSD \tfistp    dword ptr[esp - LCW - LStX - LNamber - LIExp10]<\/code><\/pre>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0432 <code>FPU<\/code> \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c 10 (\u0434\u0435\u0441\u044f\u0442\u0438) \u043f\u043e \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044e 2 (\u0434\u0432\u0430) \u0438 \u0443\u043c\u043d\u043e\u0436\u0430\u0435\u043c \u0435\u0433\u043e \u043d\u0430 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f \u043f\u043e \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044e 10 (\u0434\u0435\u0441\u044f\u0442\u044c), \u043f\u043e\u043b\u0443\u0447\u0430\u044f \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0427\u0438\u0441\u043b\u0430:<\/p>\n<pre><code>\tfldl2t \tfimul    dword ptr[esp - LCW - LStX - LNamber - LIExp10]<\/code><\/pre>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c  \u0432 \u0441\u0442\u0435\u043a \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u044f \u0435\u0433\u043e \u0432 \u0446\u0435\u043b\u043e\u0435 \u0438 \u043e\u043a\u0440\u0443\u0433\u043b\u044f\u044f \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043d\u0443\u043b\u044f:<\/p>\n<pre><code>\tfist     dword ptr[esp - LCW - LStX - LNamber - LIExp10 - LIExp2]<\/code><\/pre>\n<p>\u0412\u044b\u0447\u0438\u0442\u0430\u0435\u043c \u0438\u0437 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u0433\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f \u0446\u0435\u043b\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0434\u0432\u043e\u0438\u0447\u043d\u0443\u044e \u043c\u0430\u043d\u0442\u0438\u0441\u0441\u0443 \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f. \u041e\u0441\u043e\u0431\u043e \u0441\u0442\u043e\u0438\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0447\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <code>f2xm1<\/code> \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u043e 60 \u0442\u0430\u043a\u0442\u043e\u0432 \u0434\u0430\u0436\u0435 \u043d\u0430 <code>Skylake<\/code> \u0438 \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u0435 \u0440\u0430\u0437\u0443\u043c\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c \u043a\u043e\u0434 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0438\u0439 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code>f2xm1<\/code>:<\/p>\n<pre><code>\tfisub    dword ptr[esp - LCW - LStX - LNamber - LIExp10 - LIExp2] \tf2xm1<\/code><\/pre>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0432 <code>\u0425\u041c\u041c0<\/code> \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u044f \u0435\u0433\u043e \u0432 <code>float<\/code>:<\/p>\n<pre><code>\tcvtsi2ss xmm0, dword ptr[esp - LCW - LStX - LNamber - LIExp10]<\/code><\/pre>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0432 EAX \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f, \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0435\u0433\u043e \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0435\u0435 \u0432 \u0441\u0442\u0435\u043a:<\/p>\n<pre><code>\tmov       eax, dword ptr[esp - LCW - LStX - LNamber - LIExp10 - LIExp2] \tadd        ax, 3FFh \tshl       rax, 34h \tmov            qword ptr[esp - LCW - LStX - LNamber - LMulExp2], rax<\/code><\/pre>\n<p>\u0421\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0439 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0447\u0438\u0441\u043b\u0430 \u0441 \u043d\u0443\u043b\u0435\u043c \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u0430 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u043c \u0443\u0447\u0430\u0441\u0442\u043e\u043a \u043a\u043e\u0434\u0430 \u043f\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0441\u0442\u0440\u043e\u043a\u0438 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b:<\/p>\n<pre><code>\txor       edx, edx \tsubss    xmm0, NoSD \tpxor     xmm1, xmm1 \tcomiss   xmm1, xmm0 jz @f<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0432\u0435\u043a\u0442\u043e\u0440 \u0438\u0437 \u0447\u0435\u0442\u044b\u0440\u0435\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0435\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044c:<\/p>\n<pre><code>\tshufps   xmm0, xmm0, 0 \tsubps    xmm1, xmm0 \tmaxps    xmm0, xmm1<\/code><\/pre>\n<p>\u0412\u044b\u0434\u0435\u043b\u044f\u0435\u043c \u0438\u0437 \u0442\u0440\u0435\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0427\u0438\u0441\u043b\u0430 \u0442\u0440\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0435\u0434\u0438\u043d\u0438\u0446 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0438 \u0441\u043e\u0442\u0435\u043d, \u0430 \u043e\u0434\u043d\u043e \u0438\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043e\u0431\u043d\u0443\u043b\u044f\u0435\u043c \u0437\u0430 \u043d\u0435\u043d\u0430\u0434\u043e\u0431\u043d\u043e\u0441\u0442\u044c\u044e:<\/p>\n<pre><code>\tmulps    xmm0, xmmword ptr f0001 \troundps  xmm0, xmm0, ROUND_TOWARD_ZERO \tpshufd   xmm1, xmm0, 10010000b \tmulps    xmm1, xmmword ptr f0002 \tsubps    xmm0, xmm1<\/code><\/pre>\n<p>\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0427\u0438\u0441\u043b\u0430 \u0432 \u0434\u0432\u043e\u0439\u043d\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 \u0438 \u0443\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0438\u0445 \u0431\u0430\u0439\u0442\u044b:<\/p>\n<pre><code>\tcvtps2dq xmm0, xmm0 \tpxor     xmm1, xmm1 \tpcmpeqd  xmm1, xmm0 \tpackusdw xmm0, xmm0 \tpackuswb xmm0, xmm0<\/code><\/pre>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 <code>AX <\/code>\u0441\u0442\u0440\u043e\u043a\u0443 <code>'\u0435-'<\/code> <code>'\u0435+'<\/code> \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0437\u043d\u0430\u043a\u0430 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b:<\/p>\n<pre><code>\tmov       eax, 2B65h \tcmovc      ax, DotM<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0427\u0438\u0441\u043b\u0430 \u0438 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u043c \u0435\u0435 \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 <code>RDX<\/code>:<\/p>\n<pre><code>\tmovmskps  ecx, xmm1 \tbsr       ecx, ecx \tlea       ecx,[ecx * 8 - 8] \tmovd      edx, xmm0 \tadd       edx, 30303000h \tshrd      rdx, rdx, cl        \tmov        dx,  ax<\/code><\/pre>\n<p>\u0423\u043c\u043d\u043e\u0436\u0430\u0435\u043c \u043c\u0430\u043d\u0442\u0438\u0441\u0441\u0443 \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f \u043d\u0430 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f:<\/p>\n<pre><code>@@:\tfmul     qword ptr[esp - LCW - LStX - LNamber - LMulExp2]<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a \u043c\u0430\u043d\u0442\u0438\u0441\u0441\u0435 \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u043e\u043b\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f:<\/p>\n<pre><code>\tfadd     qword ptr[esp - LCW - LStX - LNamber - LMulExp2]<\/code><\/pre>\n<p>\u0423\u043c\u043d\u043e\u0436\u0430\u0435\u043c \u043f\u043e\u043b\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f \u043d\u0430 \u043c\u043e\u0434\u0443\u043b\u044c \u0427\u0438\u0441\u043b\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0447\u0438\u0441\u043b\u043e \u0441 \u0432\u043e\u0441\u044c\u043c\u0438 \u0437\u043d\u0430\u0447\u0430\u0449\u0438\u043c\u0438 \u0447\u0438\u0441\u043b\u0430\u043c\u0438 \u0434\u043e \u0437\u0430\u043f\u044f\u0442\u043e\u0439 \u0438 \u0432\u043e\u0441\u044c\u043c\u044c\u044e \u043f\u043e\u0441\u043b\u0435:<\/p>\n<pre><code>\tfmul     qword ptr[esp - LCW - LStX - LNamber]<\/code><\/pre>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 \u0441\u0442\u0435\u043a \u0432\u0435\u0440\u0445\u043d\u0438\u0435 \u0432\u043e\u0441\u0435\u043c\u044c \u0437\u043d\u0430\u043a\u043e\u0432 \u0446\u0435\u043b\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0427\u0438\u0441\u043b\u0430 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u044f \u0435\u0433\u043e \u0432 \u0446\u0435\u043b\u043e\u0435 \u0438 \u043e\u043a\u0440\u0443\u0433\u043b\u044f\u044f \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043d\u0443\u043b\u044f:<\/p>\n<pre><code>\tfist     dword ptr[esp - LCW - LStX - LILowPathNam - LIUpPathNam]<\/code><\/pre>\n<p>\u0412\u044b\u0447\u0438\u0442\u0430\u0435\u043c \u0438\u0437 \u0427\u0438\u0441\u043b\u0430 \u0446\u0435\u043b\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0438 \u0443\u043c\u043d\u043e\u0436\u0430\u0435\u043c \u0435\u0435 \u043d\u0430 10\u0435+8 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u044f \u043d\u0438\u0436\u043d\u0438\u0435 \u0432\u043e\u0441\u0435\u043c\u044c \u0447\u0438\u0441\u0435\u043b \u0447\u0438\u0441\u043b\u0430 \u0432 \u0446\u0435\u043b\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0427\u0438\u0441\u043b\u0430:<\/p>\n<pre><code>\tfisub    dword ptr[esp - LCW - LStX - LILowPathNam - LIUpPathNam] \tfmul     f10p8<\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435 \u043a \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u043c\u0443 \u0447\u0438\u0441\u043b\u0443 \u0438 \u0432\u044b\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043d\u0438\u0436\u043d\u0438\u0435 \u0432\u043e\u0441\u0435\u043c\u044c \u0447\u0438\u0441\u0435\u043b \u0427\u0438\u0441\u043b\u0430 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u044f \u0435\u0433\u043e \u0432 \u0446\u0435\u043b\u043e\u0435 \u0438 \u043e\u043a\u0440\u0443\u0433\u043b\u044f\u044f \u0432 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043e \u0447\u0438\u0441\u043b\u0430:<\/p>\n<pre><code>\tfldcw      CW1 \tfistp    dword ptr[esp - LCW - LStX - LIUpPathNam]<\/code><\/pre>\n<p>\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u0440\u0435\u0434\u0443 <code>FPU<\/code>:<\/p>\n<pre><code>\tfld      tbyte ptr[esp - LCW - LStX] \tfldcw     word ptr[esp - LCW]<\/code><\/pre>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0432\u0435\u0440\u0445\u043d\u044e\u044e \u0438 \u043d\u0438\u0436\u043d\u044e\u044e \u0447\u0430\u0441\u0442\u044c \u0427\u0438\u0441\u043b\u0430 \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 <code>\u0425\u041c\u041c0<\/code> \u0438 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0438\u0445 \u0432 <code>float<\/code>:<\/p>\n<pre><code>\tmovq     xmm0, qword ptr[esp - LCW - LStX - LIUpPathNam - LILowPathNam] \tcvtdq2ps xmm0, xmm0<\/code><\/pre>\n<p>\u0420\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c \u0432\u0435\u0440\u0445\u043d\u044e\u044e \u0438 \u043d\u0438\u0436\u043d\u044e\u044e \u0447\u0430\u0441\u0442\u044c \u0427\u0438\u0441\u043b\u0430 \u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0435 \u0447\u0430\u0441\u0442\u0438:<\/p>\n<pre><code>\tmovaps   xmm1, xmm0 \tmulps    xmm0, xmmword ptr f10m4 \troundps  xmm0, xmm0, ROUND_TOWARD_ZERO \tmovaps   xmm2, xmm0 \tmulps    xmm2, xmmword ptr f10p4 \tsubps    xmm1, xmm2 \tunpcklps xmm0, xmm1<\/code><\/pre>\n<p>\u0420\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c \u0447\u0435\u0442\u044b\u0440\u0435 \u0447\u0430\u0441\u0442\u0438 \u0427\u0438\u0441\u043b\u0430 \u043d\u0430 \u0432\u043e\u0441\u0435\u043c\u044c \u0447\u0430\u0441\u0442\u0435\u0439:<\/p>\n<pre><code>\tmovaps   xmm1, xmm0 \tmulps    xmm0, xmmword ptr f10m2 \troundps  xmm0, xmm0, ROUND_TOWARD_ZERO \tmovaps   xmm2, xmm0 \tmulps    xmm2, xmmword ptr f10p2 \tsubps    xmm1, xmm2<\/code><\/pre>\n<p>\u0420\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c \u043d\u0438\u0436\u043d\u0438\u0435 \u0447\u0435\u0442\u044b\u0440\u0435 \u0447\u0430\u0441\u0442\u0438 \u0427\u0438\u0441\u043b\u0430 \u043d\u0430 \u0432\u043e\u0441\u0435\u043c\u044c \u0447\u0438\u0441\u0435\u043b \u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u0438\u0445 \u0432 \u0432\u043e\u0441\u0435\u043c\u044c \u0446\u0435\u043b\u044b\u0445 \u0441\u043b\u043e\u0432:<\/p>\n<pre><code>\tmovaps   xmm2, xmm1 \tmulps    xmm1, xmmword ptr f10m1 \troundps  xmm1, xmm1, ROUND_TOWARD_ZERO \tmovaps   xmm3, xmm1 \tmulps    xmm3, xmmword ptr f10p1 \tsubps    xmm2, xmm3\t \tcvtps2dq xmm1, xmm1 \tcvtps2dq xmm2, xmm2 \tpslld    xmm2, 8 \tpaddb    xmm1, xmm2<\/code><\/pre>\n<p>\u0420\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c \u0432\u0435\u0440\u0445\u043d\u0438\u0435 \u0447\u0435\u0442\u044b\u0440\u0435 \u0447\u0430\u0441\u0442\u0438 \u0427\u0438\u0441\u043b\u0430 \u043d\u0430 \u0432\u043e\u0441\u0435\u043c\u044c \u0447\u0438\u0441\u0435\u043b \u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u0438\u0445 \u0432 \u0432\u043e\u0441\u0435\u043c\u044c \u0446\u0435\u043b\u044b\u0445 \u0441\u043b\u043e\u0432:<\/p>\n<pre><code>\tmovaps   xmm2, xmm0 \tmulps    xmm0, xmmword ptr f10m1 \troundps  xmm0, xmm0, ROUND_TOWARD_ZERO \tmovaps   xmm3, xmm0 \tmulps    xmm3, xmmword ptr f10p1 \tsubps    xmm2, xmm3 \tcvtps2dq xmm0, xmm0 \tcvtps2dq xmm2, xmm2 \tpslld    xmm2, 8 \tpaddb    xmm0, xmm2<\/code><\/pre>\n<p>\u0421\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c \u0432\u0435\u0440\u0445\u043d\u044e\u044e \u0438 \u043d\u0438\u0436\u043d\u044e\u044e \u0447\u0430\u0441\u0442\u044c \u0427\u0438\u0441\u043b\u0430:<\/p>\n<pre><code>\tpslld    xmm1, 16 \tpaddb    xmm0, xmm1<\/code><\/pre>\n<p>\u0412\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0434\u043b\u0438\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0431\u0430\u0439\u0442\u0430\u0445:<\/p>\n<pre><code>\tpxor     xmm3, xmm3 \tpcmpeqb  xmm3, xmm0 \tpmovmskb  eax, xmm3 \tbts       eax, 10h \tbsr       eax, eax<\/code><\/pre>\n<p>\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u0447\u0438\u0441\u043b\u0430 \u0432 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438\u0445 \u0432 \u0441\u0442\u0435\u043a:<\/p>\n<pre><code>\tpaddb    xmm0, xmmWord ptr i30h \tmovdqu   [esp - LString + byte], xmm0<\/code><\/pre>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0427\u0438\u0441\u043b\u0430 \u0432 \u0441\u0442\u0435\u043a:<\/p>\n<pre><code>\tmov      qword ptr[esp - LString + byte + eax], rdx<\/code><\/pre>\n<p>\u0412\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0434\u043b\u0438\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0438 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0427\u0438\u0441\u043b\u0430:<\/p>\n<pre><code>\tmovd     xmm0, rdx \tpxor     xmm1, xmm1 \tpcmpeqb  xmm1, xmm0 \tpmovmskb  edx, xmm1 \tbsf       edx, edx \tlea       eax,[eax + edx + word + byte]<\/code><\/pre>\n<p>\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b &#8216;.&#8217; \u043c\u0435\u0436\u0434\u0443 \u043f\u0435\u0440\u0432\u044b\u043c \u0438 \u0432\u0442\u043e\u0440\u044b\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u043c \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<pre><code>\tmov     dl,[esp - LString + byte] \tmov     dh,'.' \tmov        [esp - LString], dx<\/code><\/pre>\n<p>\u0412\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u043d\u0443\u044e \u0434\u043b\u0438\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<pre><code>\tmov     ecx,   dword ptr[esp - LString - dword - byte] \tsub     eax, ecx<\/code><\/pre>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u0427\u0438\u0441\u043b\u0430 \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b <code>\u0425\u041c\u041c1 <\/code>\u0438 <code>\u0425\u041c\u041c2<\/code>:<\/p>\n<pre><code>\tmovdqu xmm1, xmmword ptr[esp - LString +   ecx - byte] \tmovdqu xmm2, xmmword ptr[esp - LString +   ecx - byte + xmmword]<\/code><\/pre>\n<p>\u0414\u0443\u0431\u043b\u0438\u0440\u0443\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u0438\u043d\u044b \u0427\u0438\u0441\u043b\u0430 \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 <code>ECX<\/code>:<\/p>\n<pre><code>\tmov     ecx, eax<\/code><\/pre>\n<p>\u0417\u0430\u0447\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0435\u0441\u043b\u0438 \u0440\u0430\u043d\u0435\u0435 \u0442\u044b \u0443\u0436\u0435 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u043b \u043a\u043e\u0434 \u043f\u0440\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u044f\u0432\u0438\u043b \u0447\u0442\u043e \u043e\u043d \u0441\u0430\u043c\u044b\u0439 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 &#8212; \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0435\u0449\u0435 \u0431\u044b\u0441\u0442\u0440\u0435\u0439.<\/p>\n<p>\u0427\u0435\u043c \u043e\u043d \u043b\u0443\u0447\u0448\u0435 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e &#8212; \u0432 \u044d\u0442\u043e\u043c \u043a\u043e\u0434\u0435 \u0432\u0435\u043a\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0440\u0430\u0437\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0427\u0438\u0441\u043b\u0430 \u043d\u0430 \u0447\u0438\u0441\u043b\u0430.<\/p>\n<p>\u041f\u043e\u0447\u0435\u043c\u0443 \u0432 \u043d\u0435\u043c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f <code>FPU <\/code>\u0438 <code>SIMD <\/code>&#8212; \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 <code>FPU <\/code>\u0435\u0441\u0442\u044c \u0440\u0435\u0436\u0438\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0438\u0437\u0432\u043b\u0435\u0447\u044c 16 \u0437\u043d\u0430\u0447\u0430\u0449\u0438\u0445 \u0446\u0438\u0444\u0440.<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/542270\/\"> https:\/\/habr.com\/ru\/post\/542270\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-317981","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/317981","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=317981"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/317981\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=317981"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=317981"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=317981"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}