Commit Graph

2037 Commits

Author SHA1 Message Date
Jonathan Edwards
b1e0d2058b Addition of some complex hyperbolic functions 2015-02-28 16:12:36 -05:00
Archs
f9b2f9565c streams.ssWriteData: calling setLen only when new data truely increases the underlying string buffer 2015-03-01 00:33:40 +08:00
def
4dbb582311 Add for rationals 2015-02-27 20:46:05 +01:00
def
75959a0fb3 Add for easier intialization of rationals 2015-02-27 20:38:53 +01:00
def
e35e240757 parsexml: Use slices instead of copyMem 2015-02-27 03:10:06 +01:00
def
ba63a8f8b8 Use templates in parsexml instead for performance 2015-02-27 03:10:06 +01:00
def
15cc3bf670 Improve performance of parsexml
- Prevent string copies when not necessary
- Don't allocate a new XMLParser.c all the time
2015-02-27 03:10:06 +01:00
Andreas Rumpf
f87d663ab7 Merge pull request #1840 from def-/extend-math
Rational numbers and a few additions to math and complex
2015-02-26 12:44:00 +01:00
Andreas Rumpf
0ff4ed0ff3 Merge pull request #2208 from def-/walkdir
Speed up walkDir significantly
2015-02-25 22:58:03 +01:00
def
5e8eaa5f97 Use faster walkDir on BSDs 2015-02-24 23:39:08 +01:00
def
34d87c105c Fall back to lstat() calls on unsupported filesystems 2015-02-24 23:31:31 +01:00
wiffel
72e4e7291f Add SSLFree after SLShutdown to prevent memory leak 2015-02-24 22:01:07 +01:00
def
77f506bd70 Make Rational an object 2015-02-24 19:54:27 +01:00
def
1adebdc767 Speed up walkDir significantly
We only know that this works on Linux and Mac OS X, so other systems use
the POSIX conforming version still. This removed the lstat call, which
is especially expensive on NFS filesystems for me.
2015-02-24 16:37:54 +01:00
def
7898e91c32 Clean up selectors documentation a bit 2015-02-24 16:37:04 +01:00
def
3cd79faad3 Reuse socket in httpserver 2015-02-24 16:36:37 +01:00
Andreas Rumpf
890dcabbde Merge pull request #2194 from GrundleTrundle/windows_timer_sub
Fix for timer overflow when using nimprofiler with 32bit Windows target.
2015-02-22 21:24:23 +01:00
Andreas Rumpf
63c6bc9c69 Merge pull request #2198 from oderwat/fix-table-mpairs
Fix unknown symbol in tables mpairs iterator.
2015-02-22 21:23:20 +01:00
Hans Raaf
93aa73284e Fix unknown symbol in tables mpairs iterator.
Fixes an error with mpairs iterator which was introduced with 5fbcf93860. This is used by nimforum thats why I found it. I also added a testcase for the mpairs iterator.
2015-02-21 23:20:02 +01:00
Dominik Picheta
6f069dad84 Merge pull request #2195 from stedi67/devel
little documentation fix on combine and /
2015-02-21 22:10:15 +00:00
Dominik Picheta
1af45b78a7 Remove pointless winlean import in net module. 2015-02-21 21:32:34 +00:00
Stephan Diehl
aa62dcc2af little documentation fix on conbine and / 2015-02-21 21:53:19 +01:00
GrundleTrundle
c41e0bdbe3 Changed nimprof.hook() to handle uninitialized t0
It's unlikely, but possible for the conversion to nanoseconds
to overflow if QueryPerformanceCounter() returns a
large enough timestamp.  This change avoids that, at the
cost of always taking a sample the first time through
when t0 == 0.
2015-02-21 15:18:39 -05:00
Varriount
ef44fd344b Update net.nim - fix #2193
Fixes number #2193 and resolves some ambiguity issues
2015-02-21 15:12:57 -05:00
Dominik Picheta
a853d9c3e3 Sockets now save a copy of osLastError to work around #2191. 2015-02-21 17:17:54 +00:00
def
2d879b96df Rename sortedBy to sortByIt 2015-02-21 12:30:06 +01:00
def
f710a31344 Make rationals generic 2015-02-20 12:21:09 +01:00
def
d3946aa621 Add sortedBy template to sequtils 2015-02-20 05:01:29 +01:00
def
28fa1c3b40 Add sorted proc to algorithm module 2015-02-20 04:57:53 +01:00
def
f6c83c32f3 Fix typo 2015-02-19 13:57:31 +01:00
def
c377e6883c Change author of rationals module 2015-02-19 10:54:38 +01:00
Andreas Rumpf
43c023c8dd Merge pull request #2164 from oderwat/fix-tohex
Fixing toHex() to not wrap for long lens + Test
2015-02-19 09:12:50 +01:00
Hans Raaf
88f3b1d99f Fixing toHex() to not wrap for long lens.
If you specify a len like 32 toHex() will repeat the given value in the
output. Besides that I believe my implementation is easier and seems not
to change how negative numbers are handled. I also handle the case of
wrapping negative number beyond BiggestInt to "do it right".
2015-02-18 18:58:20 +01:00
Andreas Rumpf
358d4b958c Merge pull request #2139 from c-blake/devel
Add mgetOrPut to support just one probe chase for the common
2015-02-18 15:56:23 +01:00
Araq
9fe1aa6996 intsets.empty is wrong 2015-02-18 13:44:00 +01:00
def
e686ca2523 Fix a few more warnings 2015-02-17 02:22:30 +01:00
Charles Blake
55840d9505 Merge ../Nim into devel 2015-02-16 14:55:08 -05:00
def
43bc72f1fe Make gcd iterative instead of recursive 2015-02-16 20:44:24 +01:00
def
cc757d538c Remove shuffle again 2015-02-16 20:44:24 +01:00
def
2d004dd677 Update toInt doc 2015-02-16 20:44:24 +01:00
def
444beab5dd Fix division and add tests 2015-02-16 20:44:24 +01:00
def
a85b6fd3fe Change rationals.toInt behaviour 2015-02-16 20:44:24 +01:00
def
8c92a78853 Export new math procs 2015-02-16 20:44:24 +01:00
def
aa4d119e8c Move rational.nim to rationals.nim 2015-02-16 20:44:24 +01:00
def
b1f4eda723 Fix += and -= for Rational 2015-02-16 20:44:24 +01:00
def
d57d1f00cd Add shuffle to math module 2015-02-16 20:44:24 +01:00
def
6fc1f1374f Add rational module 2015-02-16 20:44:23 +01:00
def
00e82c2fc6 Extend complex to convert to/from polar coordinates 2015-02-16 20:44:23 +01:00
def
1ad1b93f0a Add ^, gcd and lcm to math 2015-02-16 20:43:20 +01:00
Charles Blake
629decd170 Add comments explaining odd looking i<0..data[i]. 2015-02-16 07:48:31 -05:00