Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MOVQ Intrinsic?



I have a bit of code that needs to store the low 8 bytes of an SSE register to an arbitrarily-aligned address. MOVQ looks like the right instruction for this, but it doesn't appear to have a built-in intrinsic. Apple's documentation states:

"SSE provides a rich set of scalar loads and stores. MOVQ and MOVD can be used to move 8- and 4-byte integers to and from the low element on the XMM vector."

but gives no hint how to code this with intrinsics. In other words, my function is:

// ____ store low 8 bytes of v to unaligned address p
void Store64(char* p, vSInt8 v); 

How do I code this?

Thanks,
Ben
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.