mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-26 19:50:51 +00:00
70e35d0bcc
* Embedded compiler fixes * common lib not needed for clang and lld * Fix pthread link * Fix shared build * Arm fixes 1 * arm fix * Unused fix * Build fixes * release --pbuilder * release pbuilder fix * FORCE_PBUILDER_CREATE=1 release * release: Auto use clang with sanitizers * Fix build without poco data odbc lib. zlib arm build fix. * Fix freebsd build and build without mysql * Tests: Dont eat my cpu! * Test me
25 lines
529 B
C++
25 lines
529 B
C++
#pragma once
|
|
|
|
/** exp10 from GNU libm fails to give precise result for integer arguments.
|
|
* For example, exp10(3) gives 1000.0000000000001
|
|
* despite the fact that 1000 is exactly representable in double and float.
|
|
* Better to always use implementation from MUSL.
|
|
*/
|
|
|
|
#include <stdlib.h> /// for __THROW
|
|
|
|
// freebsd have no __THROW
|
|
#if !defined(__THROW)
|
|
#define __THROW
|
|
#endif
|
|
|
|
extern "C"
|
|
{
|
|
|
|
double exp10(double x) __THROW;
|
|
double pow10(double x) __THROW;
|
|
float exp10f(float x) __THROW;
|
|
float pow10f(float x) __THROW;
|
|
|
|
}
|