emmansun / gmsm

ShangMi (SM) cipher suites for golang (Go语言商用密码软件)

Home Page:https://emmansun.github.io/gmsm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sm3: amd64, try LEA to replace ADD

emmansun opened this issue · comments

经测试,性能反而有所下降。

怎么用

LEAL     const(y0)(e*1), y2;                 \ // y2 = a <<< 12 + e + T

替代

	MOVL     e, y2;                              \
	ADDL     $const, y2;                         \
	ADDL     y0, y2;                             \ // y2 = a <<< 12 + e + T  

性能反而下降呢?