| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
Small documentation typo in math
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* posix_other: Haiku now has spawn.h
This is added per https://dev.haiku-os.org/ticket/13446
* posix_other: Add Haiku specific Dirent members
* cpuinfo: Add an implementation for Haiku
* distros: Add basic Haiku support
* encodings: update Haiku support
* fenv, math: Haiku now provides libm
* times: Add Haiku struct members
* ansi_c, osalloc: Add Haiku constants
* threads: Add Haiku support
* testament: Haiku uses LIBRARY_PATH
* nim.cfg: Update Haiku support
libnetwork should only be linked if network functions are used
* threads: Haiku does not support -pthread switch
* tworkingdir: Haiku's env is in /bin
* posix_other: add SIGKILLTHR for Haiku
* sockets: link with libnetwork on Haiku
* coro: correct ucontext.h location
http://pubs.opengroup.org/onlinepubs/009696699/basedefs/ucontext.h.html
* coro: ucontext backend is not available on Haiku
Haiku doesn't provide the <ucontext.h> header, as it was removed from POSIX
* coro: fix setjmp backend
The compiler does not allow statements after a noreturn function
* nativesockets: Haiku doesn't support AI_V4MAPPED
* system: hostOS can contains "haiku"
* os: add support for Haiku's packagefs
packagefs is read-only, but there are writable holes to the underlying
file system as well
* os: update constant for Haiku
|
| |
|
|\
| |
| | |
Add log for base b of x
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
* Rename tgamma to gamma
* set the deprecating version 0.19.0
* update changelog and use description in deprecated pragma
|
|/
|
|
|
|
| |
* Add product proc
* Update changelog
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* Use truncation division in mod for floats
* Add changelog entry
* Add floorDiv/floorMod to math.nim
* Update changelog
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
inverse hyperbolic, and change to use defined functions in C or JS for logs and hyperbolics. (#7893)
* Add secant, cosecant and cotangent.
* Add hyperbolic functions of cotangent, secant and cosecant.
* Add inverse hyperbolic functions.
* Change to use defined function of C and JS.
* Bug fix and refactoring.
* Add change to changelog.md
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Faster binary gcd algorithm.
* Use built in countTrailingZeroBits to calculate gcd.
* Add definitions of gcd for integers and other types.
* Unified signed case and unsinged case in one proc by using when syntax.
* Change to faster one.
|
| |
|
|
|
|
|
|
|
|
| |
* Replace factorial function with a compile time one
* Fix the indentation
* Update
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Fixed #4532, VS2010 now can compile Nim
Fixed #4532, VS2010 now can compile Nim
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Microsoft Visual C++ compilers prior to 2012 do not implement the 'round', 'roundl' or 'roundf' functions.
This change is fixes this. Tested it with MSVC 2010.
|
| |
|
| |
|
|
|
|
| |
(equivalent to C's modf function). Fixes #4195.
|
|
|
|
|
|
| |
accepts a places argument (fixes #3473).
This also involved moving some functions around to get the hierarchy correct and the documentation for frexp was modified such that it was clear that it can return a float in either the range [-1, -0.5] or [0.5, 1].
|
| |
|
|\ |
|
| |
| |
| | |
Needed other bracket
|
| |
| |
| | |
Not sure what was going on before
|
| |
| |
| | |
When a proc is `importc`-ed, made explicit. Otherwise, used `[T: float32|float64]`
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
FAIL: math.nim
Test "lib/pure/math.nim" in category "lib"
Failure: reExitcodesDiffer
Expected:
exitcode: 0
Gotten:
exitcode: 1
Output:
Traceback (most recent call last)
math.nim(478) math
system.nim(3343) failedAssertImpl
system.nim(3335) raiseAssert
system.nim(2531) sysFatal
Error: unhandled exception: tgamma(5.0'f64) == 24.0'f64 [AssertionError]
|
| | |
|
| | |
|