Signatures:
vector bool char vec_cmpeq (vector bool char, vector bool char);
vector bool int vec_cmpeq (vector bool int, vector bool int);
vector bool long long vec_cmpeq (vector bool long long, vector bool long long);
vector bool short vec_cmpeq (vector bool short, vector bool short);
Details
Diff Detail
Event Timeline
Fix some existing problems in the original source (not introduced by this patch). Calling vec_cmpeq function with two different type parameters will cause ambiguous errors. Have to explicitly convert the type of one parameter to the type of another parameter. Make the two input parameters consistent so the compiler knows exactly which overloads to invoke.
I think that other than the few minor nits, this patch is fine.
lib/Headers/altivec.h | ||
---|---|---|
1556 | When we have all three overloads, the order in the rest of the file is typically:
Let's keep this consistent please. | |
2379 | I assume that this change was made by clang-format. However, I think this is one of those examples where not formatting according to its rules makes the code more readable. So I personally prefer the old formatting. |
Fix a few format and layout issues.
Format: clang-format is not always correct, sometimes separate parameters in different lines is better.
Layout: put the overloaded builtin functions in such order: signed version, unsigned version and bool version.
I migrated the commit from the old anonymous repository to the new jtony repository to prepare for committing upstream (use git svn dcommit). Should not have any difference with the previous patches, update it just in case.
I assume that this change was made by clang-format. However, I think this is one of those examples where not formatting according to its rules makes the code more readable. So I personally prefer the old formatting.