fix coding-stype

This commit is contained in:
bolero-MURAKAMI 2012-10-06 00:58:56 +09:00
parent 2012838899
commit df3023db30
196 changed files with 2510 additions and 3945 deletions

View file

@ -9,23 +9,28 @@ namespace sprout {
// Copyright (C) 2011 RiSK (sscrisk)
// 7.20.6.1 abs<62>Clabs<62>CyÑ llabs ŠÖ<C5A0>
inline SPROUT_CONSTEXPR int abs(int j) {
inline SPROUT_CONSTEXPR int
abs(int j) {
return j < 0 ? -j : j;
}
inline SPROUT_CONSTEXPR long labs(long j) {
inline SPROUT_CONSTEXPR long
labs(long j) {
return j < 0 ? -j : j;
}
inline SPROUT_CONSTEXPR long long llabs(long long j) {
inline SPROUT_CONSTEXPR long long
llabs(long long j) {
return j < 0 ? -j : j;
}
inline SPROUT_CONSTEXPR long abs(long j) {
inline SPROUT_CONSTEXPR long
abs(long j) {
return sprout::labs(j);
}
inline SPROUT_CONSTEXPR long long abs(long long j) {
inline SPROUT_CONSTEXPR long long
abs(long long j) {
return sprout::llabs(j);
}
@ -36,7 +41,8 @@ namespace sprout {
std::is_integral<IntType>::value && std::is_signed<IntType>::value
>::type = sprout::enabler
>
inline SPROUT_CONSTEXPR IntType abs(IntType j) {
inline SPROUT_CONSTEXPR IntType
abs(IntType j) {
return j < 0 ? -j : j;
}
template<
@ -45,7 +51,8 @@ namespace sprout {
std::is_integral<IntType>::value && std::is_unsigned<IntType>::value
>::type = sprout::enabler
>
inline SPROUT_CONSTEXPR IntType abs(IntType j) {
inline SPROUT_CONSTEXPR IntType
abs(IntType j) {
return j;
}
} // anonymous-namespace