| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hello all. I am using LoadUnaligned function described here: http://developer.apple.com/hardware/ve/alignment.html The function is pretty simple:
static vector unsigned char LoadUnaligned( unsigned char *target ) { vector unsigned char MSQ, LSQ, result; vector unsigned char mask;
MSQ = vec_ld(0, target); // most significant quadword LSQ = vec_ld(15, target); // least significant quadword
mask = vec_lvsl(0, target); // create the permute mask return vec_perm(MSQ, LSQ, mask); // align the data }
mask = vec_lvsl(0, target);before cycle started, and do only three instructions inside the cycle:
MSQ = vec_ld(0, target); LSQ = vec_ld(15, target); return vec_perm(MSQ, LSQ, mask);
-- Sincerely, Rustam Muginov
_______________________________________________ Do not post admin requests to the list. They will be ignored. PerfOptimization-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/perfoptimization-dev/email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.