summary refs log tree commit diff stats
path: root/lib/system/arithm.nim
Commit message (Collapse)AuthorAgeFilesLines
* remove legacy code (#21134)ringabout2022-12-261-425/+0
| | | | | * remove legacy code * fixes
* use lowercase --define switches (#17283)flywind2021-03-071-1/+1
|
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-281-5/+5
| | | | | | | | | | | | | | * Error -> Defect for defects The distinction between Error and Defect is subjective, context-dependent and somewhat arbitrary, so when looking at an exception, it's hard to guess what it is - this happens often when looking at a `raises` list _without_ opening the corresponding definition and digging through layers of inheritance. With the help of a little consistency in naming, it's at least possible to start disentangling the two error types and the standard lib can set a good example here.
* catchable defects (#13626)Andreas Rumpf2020-03-121-2/+2
| | | | | | | | | | * allow defects to be caught even for --exceptions:goto (WIP) * implemented the new --panics:on|off switch; refs https://github.com/nim-lang/RFCs/issues/180 * new implementation for integer overflow checking * produce a warning if a user-defined exception type inherits from Exception directly * applied Timothee's suggestions; improved the documentation and replace the term 'checked runtime check' by 'panic' * fixes #13627 * don't inherit from Exception directly
* styleCheck: make the compiler and large parts of the stdlib compatible with ↵Araq2019-07-101-32/+32
| | | | --styleCheck:error
* Fix corner case of checked div/mod on x86 (#10406)LemonBoy2019-01-221-15/+29
| | | Fixes #10377
* fixes #2909Araq2015-06-151-1/+1
|
* Merge pull request #2645 from def-/builtin_overflowAndreas Rumpf2015-06-071-54/+122
|\ | | | | Use builtin overflow functions of Clang and GCC (WIP, RFC)
| * Use -d:builtinOverflow for builtin overflow checksdef2015-05-081-141/+110
| | | | | | | | | | | | | | | | of recent Clang and GCC >= 5.0. Maybe it's better that it's optional after all. GCC's code with builtin overflow checks seems to be a bit slower actually, while Clang's is 3 times faster.
| * Use builtin overflow functions of Clang and GCC (WIP, RFC)def2015-05-031-0/+99
| | | | | | | | | | | | | | | | | | | | | | This only works with recent Clang and GCC 5.0. Currently it doesn't work because __has_builtin can't be defined. This is totally ugly. But we can't reliably detect whether we can use the builtins from Nim, especially with cross-compiling where the user may be using an older compiler version. Switching this on/off manually with a define seems weird as well, this should work automatically.
* | Move the noreturn pragma to sysFataldef2015-05-051-4/+4
|/ | | | | Now you can choose to implement sysFatal with --os:standalone so that it returns.
* Fix typosFederico Ceratto2015-02-151-1/+1
|
* system files use new identifiersAraq2014-08-231-5/+5
|
* the big renamefest: first stepsAraq2014-08-221-1/+1
|
* fixed #1491Charlie Barto2014-08-191-11/+17
|
* distinguish between 'defined' and 'declared'Araq2014-08-111-6/+6
|
* renamed noStackFrame to asmNoStackFrameAraq2014-02-181-6/+6
|
* --os:standalone works againAraq2013-06-301-5/+5
|
* Removes executable bit for text files.Grzegorz Adam Hankiewicz2013-03-161-0/+0
|
* allow 'mixin' in genericsAraq2012-10-121-1/+1
|
* bugfixes for closuresAraq2012-06-211-0/+3
|
* year 2012 for most copyright headersAraq2012-01-021-1/+1
|
* 'pure' is now 'noStackFrame' for procsAraq2011-08-191-6/+6
|
* fixed pango/pangoutils new wrappersAndreas Rumpf2010-02-261-0/+0
|
* continued work on html/xmlparserrumpf_a@web.de2010-02-141-0/+0
|
* floating point checksAndreas Rumpf2009-12-141-0/+18
|
* added tools and web dirsAndreas Rumpf2009-09-151-0/+0
|
* overload resolution for proc varsAndreas Rumpf2009-06-241-3/+3
|
* version0.7.10Andreas Rumpf2009-06-081-0/+316