[fix](compile)compile error when use clang on aarch64 platform (#12319)
This commit is contained in:
@ -52,7 +52,7 @@ void print_s2point(std::ostream& os, const S2Point& point) {
|
||||
}
|
||||
|
||||
static inline bool is_valid_lng_lat(double lng, double lat) {
|
||||
return abs(lng) <= 180 && abs(lat) <= 90;
|
||||
return std::abs(lng) <= 180 && std::abs(lat) <= 90;
|
||||
}
|
||||
|
||||
// Return GEO_PARSE_OK, if and only if this can be converted to a valid S2Point
|
||||
|
||||
@ -22,11 +22,6 @@ static inline __attribute__((always_inline)) __m128i _mm_loadu_si128(const __m12
|
||||
return vreinterpretq_m128i_s32(vld1q_s32((const int32_t *) p));
|
||||
}
|
||||
|
||||
static inline __attribute__((always_inline)) __m128i _mm_load_si128(const __m128i *p)
|
||||
{
|
||||
return vreinterpretq_m128i_s32(vld1q_s32((const int32_t *) p));
|
||||
}
|
||||
|
||||
/** Custom memcpy implementation for ClickHouse.
|
||||
* It has the following benefits over using glibc's implementation:
|
||||
* 1. Avoiding dependency on specific version of glibc's symbol, like memcpy@@GLIBC_2.14 for portability.
|
||||
|
||||
Reference in New Issue
Block a user