09bd4a9a86
previously we used the bigfloat abstraction to do all compile-time float math. but runtime code and comptime code are supposed to get the same result. so now if you add a f32 to a f32 at compile time it does it with f32 math instead of the bigfloat. float literals still get the bigfloat math. closes #424
20 lines
468 B
C++
20 lines
468 B
C++
/*
|
|
* Copyright (c) 2017 Andrew Kelley
|
|
*
|
|
* This file is part of zig, which is MIT licensed.
|
|
* See http://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
#ifndef ZIG_QUADMATH_HPP
|
|
#define ZIG_QUADMATH_HPP
|
|
|
|
extern "C" {
|
|
__float128 fmodq(__float128 a, __float128 b);
|
|
__float128 ceilq(__float128 a);
|
|
__float128 floorq(__float128 a);
|
|
__float128 strtoflt128 (const char *s, char **sp);
|
|
int quadmath_snprintf (char *s, size_t size, const char *format, ...);
|
|
}
|
|
|
|
#endif
|