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
3d095434
Commit
3d095434
authored
Jan 19, 1992
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the longobject typedef to longobject.h.
Remove some functions that need not be exported.
parent
189e8f93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
Include/longintrepr.h
Include/longintrepr.h
+4
-9
No files found.
Include/longintrepr.h
View file @
3d095434
...
...
@@ -22,6 +22,8 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
******************************************************************/
/* This is published for the benefit of "friend" marshal.c only. */
/* Parameters of the long integer representation.
These shouldn't have to be changed as C should guarantee that a short
contains at least 16 bits, but it's made changeable any way.
...
...
@@ -52,17 +54,10 @@ typedef long stwodigits; /* signed variant of twodigits */
The allocation fuction takes care of allocating extra memory
so that ob_digit[0] ... ob_digit[abs(ob_size)-1] are actually available. */
typedef
stru
ct
{
struct
_longobje
ct
{
OB_HEAD
int
ob_size
;
/* XXX Hack! newvarobj() stores it as unsigned! */
digit
ob_digit
[
1
];
}
longobject
;
#define ABS(x) ((x) < 0 ? -(x) : (x))
};
/* Internal use only */
longobject
*
alloclongobject
PROTO
((
int
));
longobject
*
long_normalize
PROTO
((
longobject
*
));
longobject
*
mul1
PROTO
((
longobject
*
,
wdigit
));
longobject
*
muladd1
PROTO
((
longobject
*
,
wdigit
,
wdigit
));
longobject
*
divrem1
PROTO
((
longobject
*
,
wdigit
,
digit
*
));
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