summaryrefslogtreecommitdiff
path: root/numeric.c
Commit message (Collapse)AuthorAgeFilesLines
* (perl #131526) don't go beyond the end of the NUL in my_atof2Tony Cook2017-08-231-2/+2
| | | | | | | | | Perl_my_atof2() calls GROK_NUMERIC_RADIX() to detect and skip past a decimal point and then can increment the parse pointer (s) before checking what it points at, so skipping the terminating NUL if the decimal point is immediately before the NUL. (cherry picked from commit 9604fbf0722bd97ca6031a263c50ad52b6633db7)
* numeric.c: use new SvPVCLEAR and constant string friendly macrosYves Orton2016-10-191-1/+1
|
* PATCH: [perl #129766] Internal cleanup in numeric.cAndy Lester2016-10-181-12/+8
| | | | No functional changes
* vax-netbsd: avoid NV_INF/NV_NAN usesJarkko Hietaniemi2016-09-301-0/+7
|
* VAX: code changes for VAX floatsJarkko Hietaniemi2016-07-011-11/+24
| | | | | | | | | | | | | Mainly to avoid Inf and NaN, which VAX does does not have. There is something like Inf called "excess" but that is a deadly exception, seems to manifest itself in vax-netbsd either as a SIGFPE or SIGSEGV (pretty much untrappable at least from Perl level). The range of VAX floats is different from IEEE. There is positive zero, but no negative zero.
* [perl #127474] fix operator precedence when (castflags & 2)Pip Cet2016-02-081-4/+4
|
* hexfp: Use Perl_fp_class_nzero unconditionally.Jarkko Hietaniemi2015-12-041-6/+4
| | | | | Otherwise in platforms with Perl_fp_class_nzero there would be no return for the x != 0.0 case.
* Have more fallbacks for our signbit() emulation.Jarkko Hietaniemi2015-12-031-1/+15
| | | | | | | These help in systems which do not have signbit(), or fail to find one, or which explicitly disable it. The idea for the fallback implementation from Craig Berry.
* Various pods: Add C<> around many typed-as-is thingsKarl Williamson2015-09-031-51/+51
| | | | Removes 'the' in front of parameter names in some instances.
* perlapi: Use F<> around file namesKarl Williamson2015-08-011-3/+3
|
* perlapi: Use C<> instead of I<> for parameter names, etcKarl Williamson2015-08-011-26/+26
| | | | | The majority of perlapi uses C<> to specify these things, but a few things used I<> instead. Standardize to C<>.
* Replace common Emacs file-local variables with dir-localsDagfinn Ilmari Mannsåker2015-03-221-6/+0
| | | | | | | | | | | | | | | | An empty cpan/.dir-locals.el stops Emacs using the core defaults for code imported from CPAN. Committer's work: To keep t/porting/cmp_version.t and t/porting/utils.t happy, $VERSION needed to be incremented in many files, including throughout dist/PathTools. perldelta entry for module updates. Add two Emacs control files to MANIFEST; re-sort MANIFEST. For: RT #124119.
* Change some locale manipulation macros in prep for APIKarl Williamson2015-03-191-3/+5
| | | | | | | | | | This changes the way some of the current internal-only macros are named and used in order to simplify things and minimize what gets exposed as part of the API. Although these have not been listed as publicly available, it costs essentially nothing to keep the old names around in case someone was illegally using them.
* grok_atoUV: don't make part of APIHugo van der Sanden2015-03-091-2/+1
| | | | .. but keep available to extensions.
* [perl #123814] replace grok_atou with grok_atoUVHugo van der Sanden2015-03-091-36/+23
| | | | | | | | | | | | Some questions and loose ends: XXX gv.c:S_gv_magicalize - why are we using SSize_t for paren? XXX mg.c:Perl_magic_set - need appopriate error handling for $) XXX regcomp.c:S_reg - need to check if we do the right thing if parno was not grokked Perl_get_debug_opts should probably return something unsigned; not sure if that's something we can change.
* add missing infnan context under thread/quadmath buildsLukas Mai2015-02-211-1/+1
|
* infnan: revert nan payload/signaling changesJarkko Hietaniemi2015-02-111-531/+161
| | | | | | | | | | | | | | | | | | | | | | | | | 4258cf903c752ec19a3aeee9b93020533d923e1a 91e945c051cfcdf499d5b43aa5ac0a5681cdd595 eb254f2672a985ec3c34810f624f36c18fc35fc7 c9a671b17a9c588469bcef958038daaaaf9cc88b 99fcdd4df47515fb0a62a046e622adec0871754d ba511db061a88439acb528a66c780ab574bb4fb0 0d1cf11425608e9be019f27a3a4575bc71c49e6b c2ea8a88f8537d00ba25ec8feb63ef5dc085ef2b b5a6eedc2f49a90089cca896ee20f41e373fb4c9 30419b527d2c5a06cefe2db9183f59e2697c47fc 29b62199cd4c359dfc6b9d690341de40d105ca5f be181dc9d91c84a2fe03912c993c8259fed92641 4de1bcfe1abdaba0a5da394ddea0cc6fd7e36c7b 6e915616c4ccb4f6cc3122c5d395765db96c0a2d b2e3501558a1017eb529be0915c25d31671e7869 bfaa02d55f4ace1571e6fa9e5b47d5e3ac3cecc6 569f27e562618bdddcf4a9fc71612283a73747e9 4f89311dc8de87ddc9a302c6f2d2c844951bbd28 a307a0b0d83c509cc2adaad8cebb44260294bf36 6640aa2c3b93d7ac78e4e86983fe5948b3ca55f2 b74dc0b3c96390d8bf83d8c3ffc0c2c2d1f0a5d3 c3a8e5a5b4bb89a15de642c023dfd5cbc4678938
* infnan: store the nan payload error in an optional SVJarkko Hietaniemi2015-02-111-20/+18
|
* infnan: separate the nan payload overflow and invalid messagesJarkko Hietaniemi2015-02-101-15/+34
| | | | Also: display the payload, and the number of bits
* infnan: change the invalid nan message, add to perldiagJarkko Hietaniemi2015-02-101-5/+5
|
* infnan: "nan(1)cy" should numify to $NaN, but also warnJarkko Hietaniemi2015-02-101-1/+4
| | | | More test cases.
* infnan: the nan quiet/signaling bit is not enoughJarkko Hietaniemi2015-02-081-26/+34
|
* infnan: the x86 80-bit extended precision is specialJarkko Hietaniemi2015-02-081-3/+30
|
* infnan: API context jugglingJarkko Hietaniemi2015-02-081-3/+3
|
* infnan: grok_number* setting the infnan NV directlyJarkko Hietaniemi2015-02-081-161/+46
|
* infnan: add grok_nan and grok_nan_payloadJarkko Hietaniemi2015-02-081-0/+231
|
* infnan: add nan_payload_setJarkko Hietaniemi2015-02-081-0/+83
|
* infnan: add nan_is_signalingJarkko Hietaniemi2015-02-081-0/+35
|
* infnan: add nan_signaling_setJarkko Hietaniemi2015-02-081-0/+46
|
* infnan: add nan_hibyteJarkko Hietaniemi2015-02-081-0/+35
|
* [PATCH] fix PL_nan_u from leaking in every translation object on Win32 VCDaniel Dragan2015-02-041-0/+8
|
* infnan: even more comment tweaksJarkko Hietaniemi2015-01-281-6/+12
|
* infnan: comment tweaksJarkko Hietaniemi2015-01-281-9/+21
|
* infnan: restore 'Infinity' since lln.t expects it.Jarkko Hietaniemi2015-01-281-1/+11
|
* infnan: comment tweaksJarkko Hietaniemi2015-01-281-7/+10
|
* infnan: grok_infnan now needs contextJarkko Hietaniemi2015-01-281-4/+4
|
* infnan: actually use grok_hex() for nan payloadJarkko Hietaniemi2015-01-281-30/+47
| | | | | | And grok_bin() while we are at it. The payload is still unused, but we now at least parse the syntax.
* infnan: move grok_infnan before the grok_numberJarkko Hietaniemi2015-01-281-39/+39
|
* infnan: allow (silently) trailing whitespace.Jarkko Hietaniemi2015-01-281-11/+22
| | | | (Leading whitespace is handled in grok_number_flags.)
* infnan: Simplify inf parsing.Jarkko Hietaniemi2015-01-281-15/+5
| | | | | Accept anything beginning with /^inf/i, but warn if there's trailing stuff.
* infnan: More elaborate nan parsing for C99-y nan(...)Jarkko Hietaniemi2015-01-281-1/+94
|
* infnan: Allow 1.#INF00 and 1.#IND00Jarkko Hietaniemi2015-01-281-2/+10
| | | | | Windowese for inf and nan. The exact number of trailing zeros seems to vary, maybe controlled by printf precision? Or RTL dependent?
* Comment tweak.Jarkko Hietaniemi2014-11-291-1/+1
|
* Fix misparse of "Ind" as NaN (long story...) [perl #122843]Jarkko Hietaniemi2014-10-201-1/+3
| | | | While at it, add more "false nan" parse tests.
* Tru64: S_mulexp10 overflow help.Jarkko Hietaniemi2014-10-121-0/+11
|
* infnan: if the mulexp10 value goes to zero, return it.Jarkko Hietaniemi2014-10-121-0/+2
|
* [perl #12285] Fix str vs num inf/nan treatmentFather Chrysostomos2014-09-271-0/+27
| | | | | | | sprintf, pack and chr were treating 0+"Inf" and "Inf" differently, even though they have the same string and numeric values. pack was also croaking for 0+"Inf" passed to a string format.
* Fix -"-e1".Jarkko Hietaniemi2014-09-201-1/+1
| | | | Was broken by ae776a2c.
* quadmath NV formatted I/O.Jarkko Hietaniemi2014-09-191-19/+45
|
* Comment tweaks.Jarkko Hietaniemi2014-09-091-8/+15
|