path stringlengths 14 112 | content stringlengths 0 6.32M | size int64 0 6.32M | max_lines int64 1 100k | repo_name stringclasses 2
values | autogenerated bool 1
class |
|---|---|---|---|---|---|
cosmopolitan/third_party/python/Modules/signalmodule.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 44,226 | 1,576 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_eastasianwidthnames.c | #include "libc/nexgen32e/kompressor.h"
#include "third_party/python/Modules/unicodedata.h"
/* clang-format off */
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
const char _PyUnicode_EastAsianWidthNames[6][3] = {
"F",
"H",
"W",
"Na",
"A",
"N",
};
| 300 | 14 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/testcapi_long.inc | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 7,773 | 216 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/winreparse.h | #ifndef COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES_WINREPARSE_H_
#define COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES_WINREPARSE_H_
#include "libc/nt/struct/reparsedatabuffer.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
#define _Py_REPARSE_DATA_BUFFER struct NtReparseDataBuffer
#define _Py_PREPARSE_DATA_BUFFER struct NtReparseDa... | 607 | 15 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_gdbmmodule.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 19,706 | 683 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/mathmodule.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 72,571 | 2,236 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_testmultiphase.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 19,299 | 695 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_bisectmodule.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 9,161 | 291 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/sre.h | #ifndef SRE_INCLUDED
#define SRE_INCLUDED
#include "third_party/python/Include/object.h"
#include "third_party/python/Include/unicodeobject.h"
#include "third_party/python/Modules/sre_constants.h"
/* size of a code word (must be unsigned short or larger, and
large enough to hold a UCS4 character) */
#define SRE_COD... | 2,772 | 86 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/rotatingtree.h | #ifndef COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES_ROTATINGTREE_H_
#define COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES_ROTATINGTREE_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
/* clang-format off */
/* "Rotating trees" (Armin Rigo)
*
* Google "splay trees" for the general idea.
*
* It's a dict-like dat... | 1,229 | 36 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/selectmodule.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 79,534 | 2,612 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/errnomodule.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 19,250 | 407 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_nfdnfkd.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 5,624 | 142 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_comp.c | #include "libc/nexgen32e/kompressor.h"
#include "third_party/python/Modules/unicodedata.h"
/* clang-format off */
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
unsigned short _PyUnicode_CompIndex[5938];
static const unsigned short _PyUnicode_CompIndex_rodata[1146+1][2] = { /* 38.5989% prof... | 31,635 | 1,318 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_extendedcase.c | #include "libc/nexgen32e/kompressor.h"
#include "third_party/python/Modules/unicodedata.h"
/* clang-format off */
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
const char16_t _PyUnicode_ExtendedCase[1236] = {
181,
956,
924,
223,
115,
115,
83,
83,
83,
... | 12,348 | 1,244 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata.h | #ifndef COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES_UNICODEDATA_H_
#define COSMOPOLITAN_THIRD_PARTY_PYTHON_MODULES_UNICODEDATA_H_
#include "libc/assert.h"
#include "third_party/python/Include/object.h"
#include "third_party/python/Include/unicodeobject.h"
#define _Hanghoul_SBase 0xAC00
#define _Hanghoul_LBase 0x1100
#de... | 3,589 | 102 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_testbuffer.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 87,352 | 2,952 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_csv.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 53,188 | 1,724 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_asynciomodule.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 67,151 | 2,551 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/resource.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 14,447 | 397 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_threadmodule.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 49,292 | 1,522 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_3.2.0.c | #include "libc/nexgen32e/kompressor.h"
#include "third_party/python/Modules/unicodedata.h"
/* clang-format off */
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
const _PyUnicode_ChangeRecord _PyUnicode_ChangeRecords_3_2_0[] = {
{ 255, 255, 255, 255, 255, 0 },
{ 11, 255, 255, 255, 255, 0 }... | 33,384 | 1,873 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_nfclast.c | #include "libc/nexgen32e/kompressor.h"
#include "third_party/python/Modules/unicodedata.h"
/* clang-format off */
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
const _PyUnicode_Reindex _PyUnicode_NfcLast[] = {
{0x00300, 4, 0},
{0x00306, 6, 5},
{0x0030f, 0, 12},
{... | 1,252 | 50 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/syslogmodule.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 12,797 | 411 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/tkinter.h | #ifndef TKINTER_H
#define TKINTER_H
/* clang-format off */
/* This header is used to share some macros between _tkinter.c and
* tkappinit.c.
* Be sure to include tk.h before including this header so
* TK_HEX_VERSION is properly defined. */
/* TK_RELEASE_LEVEL is always one of the following:
* TCL_ALPHA_RELEASE ... | 904 | 29 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/ossaudiodev.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 43,558 | 1,403 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/posixmodule.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 329,439 | 12,231 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/unicodedata_nfcnfkc.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 5,862 | 149 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_elementtree.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 117,829 | 4,099 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_codecsmodule.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 38,610 | 1,195 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/pyexpat.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 64,634 | 2,048 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/getpath.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 22,978 | 680 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/arraymodule.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 89,782 | 3,065 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/termios.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 30,391 | 799 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/pwdmodule.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 7,823 | 273 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/grpmodule.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 8,241 | 285 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/faulthandler.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 41,479 | 1,441 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/xxlimited.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 8,623 | 328 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_lsprof.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 29,422 | 916 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/zipimport.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 50,183 | 1,608 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/tlsmodule.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 14,271 | 502 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/README.txt |
About
=====
_decimal.c is a wrapper for the libmpdec library. libmpdec is a fast C
library for correctly-rounded arbitrary precision decimal floating point
arithmetic. It is a complete implementation of Mike Cowlishaw/IBM's
General Decimal Arithmetic Specification.
Build process for the module
====================... | 1,210 | 47 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/docstrings.h | #ifndef DOCSTRINGS_H
#define DOCSTRINGS_H
/* clang-format off */
#include "third_party/python/Include/pymacro.h"
/******************************************************************************/
/* Module */
/*****************************************... | 29,014 | 879 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/_decimal.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 173,190 | 5,955 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/sixstep.h | #ifndef SIX_STEP_H
#define SIX_STEP_H
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
/* clang-format off */
/* Internal header file: all symbols have local scope in the DSO */
int six_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum);
int inv_six_step_fnt(mpd_uint_t *a, mpd_size_t n, int modnum);... | 330 | 13 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/README.txt |
libmpdec
========
libmpdec is a fast C/C++ library for correctly-rounded arbitrary precision
decimal floating point arithmetic. It is a complete implementation of
Mike Cowlishaw/IBM's General Decimal Arithmetic Specification.
Files required for the Python _decimal module
===========================================... | 3,785 | 91 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/sixstep.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 9,096 | 242 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/fourstep.h | #ifndef FOUR_STEP_H
#define FOUR_STEP_H
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
int four_step_fnt(mpd_uint_t *, mpd_size_t, int);
int inv_four_step_fnt(mpd_uint_t *, mpd_size_t, int);
#endif
| 221 | 9 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/memory.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 9,381 | 296 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/basearith.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 18,274 | 571 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/crt.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 6,263 | 158 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/convolute.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 6,341 | 159 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/crt.h | #ifndef CRT_H
#define CRT_H
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
/* clang-format off */
/* Internal header file: all symbols have local scope in the DSO */
void crt3(mpd_uint_t *x1, mpd_uint_t *x2, mpd_uint_t *x3, mpd_size_t nmemb);
#endif
| 275 | 12 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/io.h | #ifndef IO_H
#define IO_H
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
/* clang-format off */
#if SIZE_MAX == MPD_SIZE_MAX
#define mpd_strtossize _mpd_strtossize
#else
static inline mpd_ssize_t
mpd_strtossize(const char *s, char **end, int base)
{
int64_t retval;
errno = 0;
retval... | 604 | 28 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/io.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 45,113 | 1,541 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/basearith.h | #ifndef BASEARITH_H
#define BASEARITH_H
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
#include "third_party/python/Modules/_decimal/libmpdec/typearith.h"
/* clang-format off */
/* Internal header file: all symbols have local scope in the DSO */
mpd_uint_t _mpd_baseadd(mpd_uint_t *w, const mpd_ui... | 5,518 | 162 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/transpose.h | #ifndef TRANSPOSE_H
#define TRANSPOSE_H
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
/* clang-format off */
/* Internal header file: all symbols have local scope in the DSO */
enum {FORWARD_CYCLE, BACKWARD_CYCLE};
void std_trans(mpd_uint_t dest[], mpd_uint_t src[], mpd_size_t rows, mpd_size_t ... | 617 | 24 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/difradix2.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 6,098 | 137 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/constants.h | #ifndef CONSTANTS_H
#define CONSTANTS_H
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
/* clang-format off */
#define MULMOD(a, b) x64_mulmod(a, b, umod)
#define MULMOD2C(a0, a1, w) x64_mulmod2c(a0, a1, w, umod)
#define MULMOD2(a0, b0, a1, b1) x64_mulmod2(a0, b0, a1, b1, umod)
#define POWMOD(base,... | 950 | 30 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/constants.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 5,639 | 95 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/difradix2.h | #ifndef DIF_RADIX2_H
#define DIF_RADIX2_H
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
#include "third_party/python/Modules/_decimal/libmpdec/numbertheory.h"
void fnt_dif2(mpd_uint_t[], mpd_size_t, struct fnt_params *);
#endif
| 252 | 9 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/context.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 7,645 | 281 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/convolute.h | #ifndef CONVOLUTE_H
#define CONVOLUTE_H
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
#define SIX_STEP_THRESHOLD 4096
int fnt_convolute(mpd_uint_t *, mpd_uint_t *, mpd_size_t, int);
int fnt_autoconvolute(mpd_uint_t *, mpd_size_t, int);
#endif
| 268 | 11 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/transpose.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 9,344 | 244 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/mpalloc.h | #ifndef MPALLOC_H
#define MPALLOC_H
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
int mpd_switch_to_dyn(mpd_t *, mpd_ssize_t, uint32_t *);
int mpd_switch_to_dyn_zero(mpd_t *, mpd_ssize_t, uint32_t *);
int mpd_realloc_dyn(mpd_t *, mpd_ssize_t, uint32_t *);
#endif
| 287 | 10 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/fnt.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 4,071 | 76 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/fourstep.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 16,350 | 427 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/numbertheory.h | #ifndef NUMBER_THEORY_H
#define NUMBER_THEORY_H
#include "third_party/python/Modules/_decimal/libmpdec/constants.h"
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
struct fnt_params {
int modnum;
mpd_uint_t modulus;
mpd_uint_t kernel;
mpd_uint_t wtable[];
};
mpd_uint_t _mpd_getkernel(mpd_u... | 557 | 22 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/mpdecimal.h | #ifndef MPDECIMAL_H
#define MPDECIMAL_H
#include "libc/fmt/conv.h"
#include "libc/inttypes.h"
#include "libc/limits.h"
#include "libc/runtime/runtime.h"
#include "libc/stdio/stdio.h"
#include "third_party/python/pyconfig.h"
COSMOPOLITAN_C_START_
/* clang-format off */
#define MPD_VERSION "2.4.2"
#define MPD_MAJOR_VERS... | 30,778 | 614 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/numbertheory.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 5,111 | 112 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/mpdecimal.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 219,025 | 7,364 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/typearith.h | #ifndef TYPEARITH_H
#define TYPEARITH_H
#include "libc/assert.h"
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
/* clang-format off */
#if defined(__GNUC__) && defined(__x86_64__) && !defined(__STRICT_ANSI__)
static inline void
_mpd_mul_words(mpd_uint_t *hi, mpd_uint_t *lo, mpd_uint_t a, mpd_uint... | 8,347 | 298 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/bits.h | #ifndef BITS_H
#define BITS_H
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
/* clang-format off */
/*
* Check if ð is a power of 2.
*/
static inline int
ispower2(mpd_size_t n)
{
return n != 0 && (n & (n-1)) == 0;
}
/*
* Returns most significant bit position of ð.
* Assumptions: ð... | 1,615 | 60 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/fnt.h | #ifndef FNT_H
#define FNT_H
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
/* Internal header file: all symbols have local scope in the DSO */
int std_fnt(mpd_uint_t[], mpd_size_t, int);
int std_inv_fnt(mpd_uint_t[], mpd_size_t, int);
#endif
| 266 | 11 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/libmpdec/umodarith.h | #ifndef UMODARITH_H
#define UMODARITH_H
#include "third_party/python/Modules/_decimal/libmpdec/constants.h"
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
#include "third_party/python/Modules/_decimal/libmpdec/typearith.h"
/* clang-format off */
/* Bignum: Low level routines for unsigned modular a... | 7,771 | 315 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/tests/randdec.py | #
# Copyright (c) 2008-2012 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 ... | 18,442 | 576 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/tests/README.txt |
This directory contains extended tests and a benchmark against decimal.py:
bench.py -> Benchmark for small and large precisions.
Usage: ../../../python bench.py
formathelper.py ->
randdec.py -> Generate test cases for deccheck.py.
randfloat.py ->
deccheck.py -> Run extended tests.
... | 389 | 16 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/tests/deccheck.py | #
# Copyright (c) 2008-2012 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 ... | 38,999 | 1,101 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/tests/bench.py | #
# Copyright (C) 2001-2012 Python Software Foundation. All Rights Reserved.
# Modified and extended by Stefan Krah.
#
# Usage: ../../../python bench.py
import time
from math import log, ceil
try:
from test.support import import_fresh_module
except ImportError:
from test.test_support import import_fresh_modu... | 3,731 | 134 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/tests/bignum.py | #
# These tests require gmpy and test the limits of the 32-bit build. The
# limits of the 64-bit build are so large that they cannot be tested
# on accessible hardware.
#
import sys
from decimal import *
from gmpy import mpz
_PyHASH_MODULUS = sys.hash_info.modulus
# hash values to use for positive and negative infin... | 1,043 | 43 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/tests/runall-memorydebugger.sh | #!/bin/sh
#
# Purpose: test with and without threads, all machine configurations, pydebug,
# refleaks, release build and release build with valgrind.
#
# Synopsis: ./runall-memorydebugger.sh [--all-configs64 | --all-configs32]
#
# Requirements: valgrind
#
# Set additional CFLAGS and LDFLAGS for ./configure
A... | 5,334 | 177 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/tests/randfloat.py | # Copyright (c) 2010 Python Software Foundation. All Rights Reserved.
# Adapted from Python's Lib/test/test_strtod.py (by Mark Dickinson)
# More test cases for deccheck.py.
import random
TEST_SIZE = 2
def test_short_halfway_cases():
# exact halfway cases with a small number of significant digits
for k in 0... | 9,668 | 251 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/tests/formathelper.py | #
# Copyright (c) 2008-2012 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 ... | 11,559 | 343 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_decimal/tests/runall.bat | @ECHO OFF
rem Test all machine configurations, pydebug, refleaks, release build.
cd ..\..\..\
echo.
echo # ======================================================================
echo # Building Python
echo # ======================================================================
echo.
cal... | 3,012 | 112 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_sqlite/prepare_protocol.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 6,002 | 92 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_sqlite/util.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 6,420 | 162 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_sqlite/util.h | #ifndef PYSQLITE_UTIL_H
#define PYSQLITE_UTIL_H
/* clang-format off */
#include "third_party/python/Include/Python.h"
#include "third_party/python/Include/pythread.h"
#include "third_party/python/Modules/_sqlite/connection.h"
#include "third_party/sqlite3/sqlite3.h"
int pysqlite_step(sqlite3_stmt* statement, pysqlite_... | 662 | 21 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_sqlite/statement.h | #ifndef PYSQLITE_STATEMENT_H
#define PYSQLITE_STATEMENT_H
#include "third_party/python/Include/Python.h"
#include "third_party/python/Modules/_sqlite/connection.h"
#include "third_party/sqlite3/sqlite3.h"
/* clang-format off */
#define PYSQLITE_TOO_MUCH_SQL (-100)
#define PYSQLITE_SQL_WRONG_TYPE (-101)
typedef struct... | 1,219 | 38 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_sqlite/cache.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 14,090 | 364 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_sqlite/cursor.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 34,340 | 1,029 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_sqlite/module.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 17,556 | 499 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_sqlite/cursor.h | #ifndef PYSQLITE_CURSOR_H
#define PYSQLITE_CURSOR_H
#include "third_party/python/Include/Python.h"
/* clang-format off */
#include "third_party/python/Modules/_sqlite/statement.h"
#include "third_party/python/Modules/_sqlite/connection.h"
#include "third_party/python/Modules/_sqlite/module.h"
#include "third_party/pyt... | 1,614 | 49 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_sqlite/module.h | #ifndef PYSQLITE_MODULE_H
#define PYSQLITE_MODULE_H
#include "third_party/python/Include/Python.h"
/* clang-format off */
#define PYSQLITE_VERSION "2.6.0"
extern PyObject* pysqlite_Error;
extern PyObject* pysqlite_Warning;
extern PyObject* pysqlite_InterfaceError;
extern PyObject* pysqlite_DatabaseError;
extern PyObj... | 926 | 31 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_sqlite/row.h | #ifndef PYSQLITE_ROW_H
#define PYSQLITE_ROW_H
#include "third_party/python/Include/Python.h"
/* clang-format off */
typedef struct _Row
{
PyObject_HEAD
PyObject* data;
PyObject* description;
} pysqlite_Row;
extern PyTypeObject pysqlite_RowType;
int pysqlite_row_setup_types(void);
#endif
| 304 | 18 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_sqlite/cache.h | #ifndef PYSQLITE_CACHE_H
#define PYSQLITE_CACHE_H
#include "third_party/python/Include/Python.h"
/* clang-format off */
/* The LRU cache is implemented as a combination of a doubly-linked with a
* dictionary. The list items are of type 'Node' and the dictionary has the
* nodes as values. */
typedef struct _pysqlite... | 1,369 | 52 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_sqlite/connection.h | #ifndef PYSQLITE_CONNECTION_H
#define PYSQLITE_CONNECTION_H
#include "third_party/python/Include/Python.h"
#include "third_party/python/Include/pythread.h"
#include "third_party/python/Include/structmember.h"
#include "third_party/python/Modules/_sqlite/cache.h"
#include "third_party/python/Modules/_sqlite/module.h"
#i... | 3,869 | 104 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_sqlite/statement.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 19,919 | 553 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_sqlite/row.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 11,166 | 290 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_sqlite/prepare_protocol.h | #ifndef PYSQLITE_PREPARE_PROTOCOL_H
#define PYSQLITE_PREPARE_PROTOCOL_H
#include "third_party/python/Include/Python.h"
/* clang-format off */
typedef struct
{
PyObject_HEAD
} pysqlite_PrepareProtocol;
extern PyTypeObject pysqlite_PrepareProtocolType;
int pysqlite_prepare_protocol_init(pysqlite_PrepareProtocol* s... | 511 | 20 | jart/cosmopolitan | false |
cosmopolitan/third_party/python/Modules/_sqlite/connection.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 52,770 | 1,727 | jart/cosmopolitan | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.