Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2d181de4
Commit
2d181de4
authored
Dec 09, 2013
by
Stefan Krah
Browse files
Options
Browse Files
Download
Plain Diff
Merge 3.3.
parents
2dae92a8
1761fa9d
Changes
36
Hide whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
69 additions
and
36 deletions
+69
-36
Doc/license.rst
Doc/license.rst
+33
-0
Modules/_decimal/libmpdec/basearith.c
Modules/_decimal/libmpdec/basearith.c
+1
-1
Modules/_decimal/libmpdec/basearith.h
Modules/_decimal/libmpdec/basearith.h
+1
-1
Modules/_decimal/libmpdec/bits.h
Modules/_decimal/libmpdec/bits.h
+1
-1
Modules/_decimal/libmpdec/constants.c
Modules/_decimal/libmpdec/constants.c
+1
-1
Modules/_decimal/libmpdec/constants.h
Modules/_decimal/libmpdec/constants.h
+1
-1
Modules/_decimal/libmpdec/context.c
Modules/_decimal/libmpdec/context.c
+1
-1
Modules/_decimal/libmpdec/convolute.c
Modules/_decimal/libmpdec/convolute.c
+1
-1
Modules/_decimal/libmpdec/convolute.h
Modules/_decimal/libmpdec/convolute.h
+1
-1
Modules/_decimal/libmpdec/crt.c
Modules/_decimal/libmpdec/crt.c
+1
-1
Modules/_decimal/libmpdec/crt.h
Modules/_decimal/libmpdec/crt.h
+1
-1
Modules/_decimal/libmpdec/difradix2.c
Modules/_decimal/libmpdec/difradix2.c
+1
-1
Modules/_decimal/libmpdec/difradix2.h
Modules/_decimal/libmpdec/difradix2.h
+1
-1
Modules/_decimal/libmpdec/fnt.c
Modules/_decimal/libmpdec/fnt.c
+1
-1
Modules/_decimal/libmpdec/fnt.h
Modules/_decimal/libmpdec/fnt.h
+1
-1
Modules/_decimal/libmpdec/fourstep.c
Modules/_decimal/libmpdec/fourstep.c
+1
-1
Modules/_decimal/libmpdec/fourstep.h
Modules/_decimal/libmpdec/fourstep.h
+1
-1
Modules/_decimal/libmpdec/io.c
Modules/_decimal/libmpdec/io.c
+1
-1
Modules/_decimal/libmpdec/io.h
Modules/_decimal/libmpdec/io.h
+1
-1
Modules/_decimal/libmpdec/literature/fnt.py
Modules/_decimal/libmpdec/literature/fnt.py
+1
-1
Modules/_decimal/libmpdec/literature/mulmod-64.txt
Modules/_decimal/libmpdec/literature/mulmod-64.txt
+1
-1
Modules/_decimal/libmpdec/literature/umodarith.lisp
Modules/_decimal/libmpdec/literature/umodarith.lisp
+1
-1
Modules/_decimal/libmpdec/memory.c
Modules/_decimal/libmpdec/memory.c
+1
-1
Modules/_decimal/libmpdec/memory.h
Modules/_decimal/libmpdec/memory.h
+1
-1
Modules/_decimal/libmpdec/mpdecimal.c
Modules/_decimal/libmpdec/mpdecimal.c
+1
-1
Modules/_decimal/libmpdec/mpdecimal.h
Modules/_decimal/libmpdec/mpdecimal.h
+1
-1
Modules/_decimal/libmpdec/numbertheory.c
Modules/_decimal/libmpdec/numbertheory.c
+1
-1
Modules/_decimal/libmpdec/numbertheory.h
Modules/_decimal/libmpdec/numbertheory.h
+1
-1
Modules/_decimal/libmpdec/sixstep.c
Modules/_decimal/libmpdec/sixstep.c
+1
-1
Modules/_decimal/libmpdec/sixstep.h
Modules/_decimal/libmpdec/sixstep.h
+1
-1
Modules/_decimal/libmpdec/transpose.c
Modules/_decimal/libmpdec/transpose.c
+2
-2
Modules/_decimal/libmpdec/transpose.h
Modules/_decimal/libmpdec/transpose.h
+1
-1
Modules/_decimal/libmpdec/typearith.h
Modules/_decimal/libmpdec/typearith.h
+1
-1
Modules/_decimal/libmpdec/umodarith.h
Modules/_decimal/libmpdec/umodarith.h
+1
-1
Modules/_decimal/libmpdec/vccompat.h
Modules/_decimal/libmpdec/vccompat.h
+1
-1
Modules/_decimal/libmpdec/vcdiv64.asm
Modules/_decimal/libmpdec/vcdiv64.asm
+1
-1
No files found.
Doc/license.rst
View file @
2d181de4
...
...
@@ -934,3 +934,36 @@ on the cfuhash project::
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.
libmpdec
--------
The :mod:`_decimal` Module is built using an included copy of the libmpdec
library unless the build is configured ``--with-system-libmpdec``::
Copyright (c) 2008-2016 Stefan Krah. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
Modules/_decimal/libmpdec/basearith.c
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/basearith.h
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/bits.h
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/constants.c
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/constants.h
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/context.c
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/convolute.c
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/convolute.h
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/crt.c
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/crt.h
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/difradix2.c
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/difradix2.h
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/fnt.c
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/fnt.h
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/fourstep.c
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/fourstep.h
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/io.c
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/io.h
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/literature/fnt.py
View file @
2d181de4
#
# Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
# Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/literature/mulmod-64.txt
View file @
2d181de4
...
...
@@ -59,7 +59,7 @@ The reduction step b) preserves congruence:
Maximum numbers of step b):
---------------------------
# To avoid unnec
c
essary formalism, define:
# To avoid unnecessary formalism, define:
def R(hi, lo, z):
return divmod(hi * z - hi + lo, 2**64)
...
...
Modules/_decimal/libmpdec/literature/umodarith.lisp
View file @
2d181de4
;
; Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
; Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/memory.c
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/memory.h
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/mpdecimal.c
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/mpdecimal.h
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/numbertheory.c
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/numbertheory.h
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/sixstep.c
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/sixstep.h
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/transpose.c
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
@@ -169,7 +169,7 @@ squaretrans(mpd_uint_t *buf, mpd_size_t cols)
/*
* Transpose 2^n * 2^n matrix. For cache efficiency, the matrix is split into
* square blocks with side length 'SIDE'. First, the blocks are transposed,
* then a square tranposition is done on each individual block.
* then a square tran
s
position is done on each individual block.
*/
static
void
squaretrans_pow2
(
mpd_uint_t
*
matrix
,
mpd_size_t
size
)
...
...
Modules/_decimal/libmpdec/transpose.h
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/typearith.h
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/umodarith.h
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/vccompat.h
View file @
2d181de4
/*
* Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
* Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
Modules/_decimal/libmpdec/vcdiv64.asm
View file @
2d181de4
;
; Copyright (c) 2008-201
2
Stefan Krah. All rights reserved.
; Copyright (c) 2008-201
6
Stefan Krah. All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment