News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Decimal ascii to dword conversion

Started by jj2007, March 01, 2024, 11:56:20 PM

Previous topic - Next topic

jj2007

Here's one more, fresh from the Lab:
AMD Athlon Gold 3150U with Radeon Graphics      (SSE4)

1981    cycles for 100 * atodw (Masm32 SDK)
1507    cycles for 100 * s2int imul
1750    cycles for 100 * s2int lea
364     cycles for 100 * StringToDwordSimd

1975    cycles for 100 * atodw (Masm32 SDK)
1512    cycles for 100 * s2int imul
1709    cycles for 100 * s2int lea
396     cycles for 100 * StringToDwordSimd

1983    cycles for 100 * atodw (Masm32 SDK)
1492    cycles for 100 * s2int imul
1711    cycles for 100 * s2int lea
370     cycles for 100 * StringToDwordSimd

1988    cycles for 100 * atodw (Masm32 SDK)
1520    cycles for 100 * s2int imul
1718    cycles for 100 * s2int lea
398     cycles for 100 * StringToDwordSimd

10      bytes for atodw (Masm32 SDK)
34      bytes for s2int imul
30      bytes for s2int lea
114     bytes for StringToDwordSimd

12345678        = eax atodw (Masm32 SDK)
12345678        = eax s2int imul
12345678        = eax s2int lea
12345678        = eax StringToDwordSimd

(Guess what? No MasmBasic needed...)