commit | 8b28d8677966b88179a2af911ffc72012cd753c4 | [log] [tgz] |
---|---|---|
author | Steinar Midtskogen <stemidts@cisco.com> | Mon Jan 09 11:33:20 2017 +0100 |
committer | Steinar Midtskogen <stemidts@cisco.com> | Mon Jan 09 21:07:11 2017 +0000 |
tree | a91771957098130d9f72161cf57b84e7b12ba252 | |
parent | d7489148d4e14dcad180f045c133dd1d4a1139da [diff] |
Don't cast function pointers to void* (v64/v128/v256 unit tests) Casting function pointers to void* is undefined or illegal (depending on C/C++ dialect) and should be avoided. Data and code could reside in different memory. In theory function pointers could be 64 bit and data pointers could be 32 bit, so conversion to and from void* could change the value. Change-Id: Ibb70e35f21dc307cb236aecd001e15a8a8d7f9ea