Soonts
Soonts

Reputation: 21946

How to declare __m128i constant in MASM?

align(16)
__xmm@200020000a4f0a4f6621662170707070 xmmword 200020000a4f0a4f6621662170707070h

and

__xmm@200020000a4f0a4f6621662170707070 xmmword 0x200020000a4f0a4f6621662170707070

Both fail, the compiler saying error A2138: invalid data initializer

Upvotes: 3

Views: 420

Answers (1)

Jester
Jester

Reputation: 58762

The best workaround I found is to use two 8 byte initializers with a separate LABEL definition, such as:

__xmm@200020000a4f0a4f6621662170707070 LABEL xmmword
dq 0x6621662170707070, 0x200020000a4f0a4f

Upvotes: 2

Related Questions