This patch changes types of some integer function arguments or return values from si_int to the default int type to make it more compatible with libgcc.
The compiler-rt/lib/builtins/README.txt has a link to the libgcc specification. This specification has an explicit note on int, float and other such types being just illustrations in some cases while the actual types are expressed with machine modes.
Such usage of always-32-bit-wide integer type may lead to issues on 16-bit platforms such as MSP430. Provided libgcc2.h can be used as a reference for all targets supported by the libgcc, this patch fixes some existing differences in helper declarations.
This patch is expected to not change behavior at all for targets with 32-bit int type.
clang-tidy: warning: invalid case style for function '__clzdi2' [readability-identifier-naming]
not useful
clang-tidy: warning: invalid case style for parameter 'a' [readability-identifier-naming]
not useful