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/libc/nt/gdi32/GdiFullscreenControl.S
#include "libc/nt/codegen.h" .imp gdi32,__imp_GdiFullscreenControl,GdiFullscreenControl,1536
93
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/gdi32/GetETM.S
#include "libc/nt/codegen.h" .imp gdi32,__imp_GetETM,GetETM,1636
65
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/url/InetIsOffline.S
#include "libc/nt/codegen.h" .imp url,__imp_InetIsOffline,InetIsOffline,106
76
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/url/URLAssociationDialogW.S
#include "libc/nt/codegen.h" .imp url,__imp_URLAssociationDialogW,URLAssociationDialogW,118
92
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/url/FileProtocolHandler.S
#include "libc/nt/codegen.h" .imp url,__imp_FileProtocolHandler,FileProtocolHandler,104
88
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/url/TelnetProtocolHandler.S
#include "libc/nt/codegen.h" .imp url,__imp_TelnetProtocolHandler,TelnetProtocolHandler,113
92
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/url/OpenURL.S
#include "libc/nt/codegen.h" .imp url,__imp_OpenURL,OpenURL,111
64
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/url/AutodialHookCallback.S
#include "libc/nt/codegen.h" .imp url,__imp_AutodialHookCallback,AutodialHookCallback,103
90
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/url/MIMEAssociationDialogW.S
#include "libc/nt/codegen.h" .imp url,__imp_MIMEAssociationDialogW,MIMEAssociationDialogW,108
94
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/url/MailToProtocolHandler.S
#include "libc/nt/codegen.h" .imp url,__imp_MailToProtocolHandler,MailToProtocolHandler,109
92
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/url/AddMIMEFileTypesPS.S
#include "libc/nt/codegen.h" .imp url,__imp_AddMIMEFileTypesPS,AddMIMEFileTypesPS,102
86
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/url/TranslateURLW.S
#include "libc/nt/codegen.h" .imp url,__imp_TranslateURLW,TranslateURLW,116
76
3
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/program_invocation_name2.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,947
26
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/tinydivsi.greg.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,440
42
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/vendor.internal.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_VENDOR_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_VENDOR_H_ #include "libc/nexgen32e/kcpuids.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) #define IsAuthenticAMD() \ (kCpuids[KCPUIDS_0H][KCPUIDS_EBX] == 0x68747541 /* Auth */ && \ kCpuids[KCPUIDS_0H...
787
18
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/environ2.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,931
25
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/rdtscp.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_RDTSCP_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_RDTSCP_H_ #include "libc/dce.h" #include "libc/intrin/asmflag.h" #include "libc/nexgen32e/x86feature.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ #define TSC_AUX_CORE(MSR) ((MSR)&0xfff) #define TSC_AUX_NODE(MSR) (((MSR)...
3,196
66
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/x87conf.inc
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 sw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,132
34
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/auxv2.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,920
24
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/rdtsc.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_RDTSC_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_RDTSC_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ /** * Reads CPU timestamp counter. * * This macro inhibits compiler magic. * This macro does not inhibit CPU magic. * * @see X86_HAVE(INVTSC) */ #define rdtsc() _...
2,213
68
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/kreversebits.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
5,197
89
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/gclongjmp.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 sw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,163
69
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/nt2sysv.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_NT2SYSV_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_NT2SYSV_H_ #include "libc/nexgen32e/trampoline.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) /** * Creates function to thunk FUNCTION from MSX64 to System V ABI. * * This macro should be used when specifying callbacks in the WIN32 API. *...
480
15
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/ksha256.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,740
41
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/ktensindex.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,221
32
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/nexgen32e.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_NEXGEN32E_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_NEXGEN32E_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ extern long kHalfCache3; extern const uint64_t kTens[20]; extern const uint32_t kSha256[64]; extern const uint64_t kSha512[80]; extern const unsigned char kTensI...
485
17
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/tinywcslen.greg.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,178
36
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/hascharacter.internal.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_HASCHARACTER_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_HASCHARACTER_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) forceinline bool HasCharacter(char c, const char *s) { unsigned i; for (i = 0; s[i]; ++i) { if (s[i] == c) { return true; } } return false; } forceinline ...
762
37
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/mul4x4adx.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
10,045
221
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/argc.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 sw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,100
32
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/stackframe.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_STACKFRAME_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_STACKFRAME_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct StackFrame { struct StackFrame *next; intptr_t addr; }; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_L...
351
14
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/nexgen32e.mk
#-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-┐ #───vi: set et ft=make ts=8 tw=8 fenc=utf-8 :vi───────────────────────┘ PKGS += LIBC_NEXGEN32E LIBC_NEXGEN32E_ARTIFACTS += LIBC_NEXGEN32E_A LIBC_NEXGEN32E = $(LIBC_NEXGEN32E_A_DEPS) $(LIBC_N...
4,483
100
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/identity.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,005
28
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/cpuid4.internal.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_CPUID4_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_CPUID4_H_ #include "libc/nexgen32e/kcpuids.h" #define CPUID4_KEY (eax & 0xff) #define CPUID4_CACHE_TYPE (((eax & 0x0000001fu) >> 000) + 0) #define CPUID4_CACHE_LEVEL (((eax & 0x000000...
2,753
52
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/threaded.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,023
31
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/sha1ni.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
8,409
287
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/macros.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_MACROS_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_MACROS_H_ #ifdef __ASSEMBLER__ #include "libc/nexgen32e/macros.internal.inc" #else /* let's give auto-import tooling a helping hand */ #define pbroadcastb pbroadcastb #endif /* __ASSEMBLER__ */ #endif /* COSMOPOLITAN_LIBC_NEXGEN32E_MACR...
329
12
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/zip.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,594
49
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/checkstackalign.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,354
49
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/kompressor.h
#ifndef COSMOPOLITAN_LIBC_KOMPRESSOR_KOMPRESSOR_H_ #define COSMOPOLITAN_LIBC_KOMPRESSOR_KOMPRESSOR_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ #if 0 /*──────────────────────────────────────────────────...
1,221
25
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/gc.internal.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_GC_INTERNAL_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_GC_INTERNAL_H_ #include "libc/nexgen32e/stackframe.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct Garbage { struct StackFrame *frame; intptr_t fn; intptr_t arg; intptr_t ret; }; struct Garbages { in...
497
24
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/longjmp.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,668
61
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/auxv.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 sw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,100
32
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/mul8x8adx.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
28,838
496
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/siglongjmp.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,103
30
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/envp.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 sw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,100
32
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/kcpuids.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 sw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,721
99
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/x86info.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_X86INFO_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_X86INFO_H_ #include "libc/nexgen32e/kcpuids.h" #define kX86CpuStepping ((KCPUIDS(1H, EAX) >> 0) & 15) #define kX86CpuModelid ((KCPUIDS(1H, EAX) >> 4) & 15) #define kX86CpuFamilyid ((KCPUIDS(1H, EAX) >> 8) & 15) #define kX86Cpu...
2,382
69
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/lolendian.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,950
78
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/setlongerjmp.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,327
42
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/msr.internal.h
#ifndef COSMOPOLITAN_LIBC_MSR_H_ #define COSMOPOLITAN_LIBC_MSR_H_ /*─────────────────────────────────────────────────────────────────────────────╗ │ cosmopolitan ...
11,699
192
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/khalfcache3.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,654
76
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/tinywcsnlen.greg.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,230
39
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/nt2sysv.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,710
59
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/sha512.S
///////////////////////////////////////////////////////////////////////// // Implement fast SHA-512 with AVX2 instructions. (x86_64) // // Copyright (C) 2013 Intel Corporation. // // Authors: // James Guilford <james.guilford@intel.com> // Kirk Yap <kirk.s.yap@intel.com> // David Cote <david.m.cote@intel.co...
22,943
706
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/missingno.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 sw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,028
31
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/trampoline.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_TRAMPOLINE_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_TRAMPOLINE_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) #define TRAMPOLINE(FUNCTION, THUNK) \ ({ \ typeof(FUNCTION) *Tramp; \ asm(".section .text.trampoline\n" \ "183:\n\t" ...
727
21
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/kbase36.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,164
85
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/mcount.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,083
27
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/sha256.S
///////////////////////////////////////////////////////////////////////// // Implement fast SHA-256 with AVX2 instructions. (x86_64) // // Copyright (C) 2013 Intel Corporation. // // Authors: // James Guilford <james.guilford@intel.com> // Kirk Yap <kirk.s.yap@intel.com> // Tim Chen <tim.c.chen@linux.intel....
22,431
759
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/lz4.h
#ifndef COSMOPOLITAN_LIBC_LZ4_H_ #define COSMOPOLITAN_LIBC_LZ4_H_ #include "libc/intrin/bits.h" /*──────────────────────────────────────────────────────────────────────────...
4,775
73
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/ktoupper.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,333
42
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/ktolower.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,333
42
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/cachesize.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_CACHESIZE_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_CACHESIZE_H_ #define kCpuCacheTypeData 1 #define kCpuCacheTypeInstruction 2 #define kCpuCacheTypeUnified 3 #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ unsigned _getcachesize(int, int); COSMOPOLITAN_C_END_...
422
16
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/kcp437.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
8,038
95
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/crc32init.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,100
31
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/djbsort-avx2.S
#include "libc/macros.internal.h" // D.J. Bernstein's outrageously fast integer sorting algorithm. // // @param rdi is int32 array // @param rsi is number of elements in rdi // @note public domain // @see en.wikipedia.org/wiki/Sorting_network djbsort_avx2: push %rbp mov %rsp,%rbp push %r15 push %r14 push %r13 mo...
45,162
2,089
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/mul6x6adx.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
20,260
351
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/savexmm.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,523
46
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/memjmpinit.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,497
49
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/argc2.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,927
25
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/gc.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,159
84
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/longerjmp.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,241
39
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/ffs.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_FFS_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_FFS_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ int ffs(int) pureconst; int ffsl(long) pureconst; int ffsll(long long) pureconst; #ifdef __GNUC__ #define ffs(u) __builtin_ffs(u) #define ffsl(u) __builtin_ffsl(u) #defi...
474
19
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/uart.internal.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_UART_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_UART_H_ #define COM1 0x0 #define COM2 0x2 #define COM3 0x4 #define COM4 0x6 #define IRQ3 0x0b /* com2 interrupt number (irq3) */ #define IRQ4 0x0c /* com1 interrupt number (irq4) */ #define...
1,231
27
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/ktens.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,295
43
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/setjmp.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,702
60
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/x86compiler.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_X86COMPILER_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_X86COMPILER_H_ /** * @fileoverview x86 cpu feature compile-time requirement detection. * @see -march=native, -mavx2, etc. */ #ifdef __AES__ #define _X86_CC_AES 1 #else #define _X86_CC_AES 0 #endif #ifdef __AVX__ #define _X86_CC...
1,981
142
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/pcmpstr.inc
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 sw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,708
55
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/argv2.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,930
25
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/macros.internal.inc
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 sw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,385
90
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/cescapec.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,717
57
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/loadxmm.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,524
46
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/crc32.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_CRC32_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_CRC32_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ extern const uint32_t kCrc32cTab[256]; void crc32init(uint32_t[hasatleast 256], uint32_t); uint32_t crc32a(uint32_t, const void *, size_t); uint32_t crc32c(uint32_t, co...
459
15
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/sha1.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
14,809
650
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/bench.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_BENCH_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_BENCH_H_ #include "libc/nexgen32e/rdtsc.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) /** * @fileoverview NexGen32e Microbenchmarking. * * @see X86_HAVE(INVTSC) * @see libc/testlib/bench.h */ #ifdef __x86__ #define __startbench() ...
3,082
78
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/x86feature.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_X86FEATURE_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_X86FEATURE_H_ #ifdef __x86_64__ #include "libc/nexgen32e/kcpuids.h" #include "libc/nexgen32e/x86compiler.h" /** * @fileoverview x86 cpu feature detection. */ #define X86_HAVE(FEATURE) _X86_HAVE(X86_##FEATURE) /* clang-format off ...
15,962
257
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/envp2.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,930
25
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/vidya.internal.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_VIDYA_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_VIDYA_H_ #define VIDYA_ROWS 25 #define VIDYA_COLUMNS 80 #define VIDYA_SIZE (VIDYA_ROWS * VIDYA_COLUMNS * 2) #define VIDYA_MODE_MDA 7 #define VIDYA_MODE_CGA 3 #define VIDYA_ADDR_MDA ...
2,626
84
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/fentry.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,112
31
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/kcpuids.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_KCPUIDS_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_KCPUIDS_H_ #define KCPUIDS_0H 0 #define KCPUIDS_1H 1 #define KCPUIDS_2H 2 #define KCPUIDS_7H 3 #define KCPUIDS_80000001H 4 #define KCPUIDS_80000007H 5 #define KCPUIDS_16H 6 #define KCPUIDS_LEN 7 #...
1,093
37
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/sha.h
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_SHA_H_ #define COSMOPOLITAN_LIBC_NEXGEN32E_SHA_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ void sha1_transform_avx2(uint32_t[hasatleast 5], const void *, unsigned); void sha1_transform_ni(uint32_t[hasatleast 5], const void *, unsigned); void sha256_transform_rorx(...
559
14
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/program_invocation_name.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 sw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,283
37
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/rldecode.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 sw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,194
39
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/ksha512.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,724
65
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/sha256ni.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
10,341
319
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/argv.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 sw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,100
32
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/pid.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,883
22
jart/cosmopolitan
false
cosmopolitan/libc/nexgen32e/environ.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 sw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,090
33
jart/cosmopolitan
false
cosmopolitan/libc/linux/exit.h
#ifndef COSMOPOLITAN_LIBC_LINUX_EXIT_H_ #define COSMOPOLITAN_LIBC_LINUX_EXIT_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ forceinline wontreturn long LinuxExit(long rc) { asm volatile("syscall" : /* no outputs */ : "a"(0xE7), "D"(rc) : "memory"); unrea...
443
17
jart/cosmopolitan
false