How to Use altivec?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to Use altivec?

1,638 Views
varunkjayan
Contributor II

hi

i am using the T4240rdb board i want to know how to enable altivec feature is it built in

in the t4240rdb fsl-image-core and how can we exploit the altivec feature is there any code or command for that

Labels (1)
3 Replies

1,171 Views
bpe
NXP Employee
NXP Employee

Altivec is a feature of e6500 core accessed by special command subset.

In kernel, it is enabled by CONFIG_ALTIVEC option which is enabled in the SDK default configuration

for all supported e6500-based processors/boards.

For user space,  '-maltivec' GCC option allows the compiler to utilize Altivec instructions. Again,

the SDK sets this flag when it builds rootfs by default.

Have a great day,
Platon

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,171 Views
varunkjayan
Contributor II

thank you for replying i have one more question 

for example if we are going to add some 4000 matrices and then use this altivec feature will it help in reducing the computation time significantly than the normal compiling and executing

0 Kudos

1,171 Views
bpe
NXP Employee
NXP Employee
0 Kudos