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/calls/struct/statfs-openbsd.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_STATFS_OPENBSD_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_STATFS_OPENBSD_H_ #include "libc/calls/struct/fsid.h" #include "libc/sock/struct/sockaddr.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct xucred_openbsd { uint32_t cr_uid; /* user id */ uint...
6,117
137
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/ucontext-openbsd.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_UCONTEXT_OPENBSD_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_UCONTEXT_OPENBSD_INTERNAL_H_ #include "libc/calls/ucontext.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct ucontext_openbsd { int64_t sc_rdi; int64_t sc_rsi; int64_t sc_rdx; int64_t ...
960
43
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/siginfo-freebsd.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGINFO_FREEBSD_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGINFO_FREEBSD_H_ #include "libc/calls/struct/sigval.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct siginfo_freebsd { int32_t si_signo; int32_t si_errno; int32_t si_code; int32_t si_pid; i...
813
40
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/stat.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_STAT_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_STAT_H_ #include "libc/calls/struct/timespec.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct stat { /* cosmo abi */ uint64_t st_dev; /* 0: id of device with file */ uint64_t st_ino; ...
1,396
34
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/flock.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FLOCK_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_FLOCK_INTERNAL_H_ #include "libc/calls/struct/flock.h" #include "libc/mem/alloca.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ const char *DescribeFlock(char[300], int, const struct flock *); #define Descri...
497
14
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/fd.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FD_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_FD_INTERNAL_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ enum FdKind { kFdEmpty, kFdFile, kFdSocket, kFdProcess, kFdConsole, kFdSerial, kFdZip, kFdEpoll, kFdReserved }; struct Fd { enum F...
637
36
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/sigset.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGSET_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGSET_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ typedef struct sigset { uint64_t __bits[2]; } sigset_t; int sigaddset(sigset_t *, int) paramsnonnull(); int sigdelset(sigset_t *, int) paramsnonnull(); int si...
1,149
30
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/fsid.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_FSID_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_FSID_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ typedef struct fsid_t { uint32_t __val[2]; } fsid_t; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_F...
330
13
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/statfs.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_STATFS_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_STATFS_H_ #include "libc/calls/struct/fsid.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct statfs { /* cosmo abi */ int64_t f_type; /* type of filesystem */ int64_t f_bsize; /* optimal transfe...
1,134
30
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/termios.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_TERMIOS_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_TERMIOS_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct termios { /* GNU/Systemd ABI */ uint32_t c_iflag; /* input modes */ uint32_t c_oflag; /* output modes */ uint32_t c_cflag; /* control modes...
655
21
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/siginfo.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGINFO_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGINFO_INTERNAL_H_ #include "libc/calls/struct/siginfo.h" #include "libc/mem/alloca.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ int sys_sigqueueinfo(int, const siginfo_t *) _Hide; const char *Describe...
561
16
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/sigaltstack.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGALTSTACK_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGALTSTACK_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct sigaltstack { void *ss_sp; int ss_flags; size_t ss_size; }; typedef struct sigaltstack stack_t; int sigaltstack(const struct sigaltstack...
474
19
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/sigaction.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_INTERNAL_H_ #include "libc/calls/struct/sigaction.h" #include "libc/calls/struct/siginfo.h" #include "libc/mem/alloca.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct sigaction_linux { v...
1,742
69
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/utsname-linux.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_UTSNAME_LINUX_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_UTSNAME_LINUX_INTERNAL_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct utsname_linux { char sysname[65]; char nodename[65]; char release[65]; char version[65]; char machine[65]; cha...
542
20
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/timeval.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_TIMEVAL_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_TIMEVAL_INTERNAL_H_ #include "libc/calls/struct/timeval.h" #include "libc/time/struct/timezone.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ axdx_t sys_gettimeofday(struct timeval *, struct timezone *, vo...
1,016
21
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/sigaltstack.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGALTSTACK_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGALTSTACK_INTERNAL_H_ #include "libc/calls/struct/sigaltstack.h" #include "libc/mem/alloca.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ const char *DescribeSigaltstk(char[128], int, const struct si...
543
14
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/statfs-linux.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_STATFS_LINUX_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_STATFS_LINUX_INTERNAL_H_ #include "libc/calls/struct/fsid.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct statfs_linux { int64_t f_type; /* type of filesystem */ int64_t f_bsize; /* opt...
1,004
25
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/siginfo-meta.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGINFO_META_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGINFO_META_INTERNAL_H_ #include "libc/calls/struct/siginfo-freebsd.internal.h" #include "libc/calls/struct/siginfo-netbsd.internal.h" #include "libc/calls/struct/siginfo-openbsd.internal.h" #include "libc/calls/stru...
833
24
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/sched_param.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SCHED_PARAM_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_SCHED_PARAM_INTERNAL_H_ #include "libc/calls/struct/sched_param.h" #include "libc/mem/alloca.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ const char *DescribeSchedParam(char[32], const struct sched_p...
529
14
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/cpuset.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_CPUSET_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_CPUSET_H_ #define CPU_SETSIZE 1024 #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ typedef struct cpu_set_t { uint64_t __bits[16]; } cpu_set_t; int sched_getcpu(void); int sched_getaffinity(int, size_t, cpu_set_t *...
974
30
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/user_regs_struct.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_USER_REGS_STRUCT_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_USER_REGS_STRUCT_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ /** * Linux Kernel user registers. * * @note superset of struct pt_regs * @see ptrace() w/ PTRACE_SYSCALL */ struct user_regs_struct { ...
1,324
74
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/winsize.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_WINSIZE_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_WINSIZE_INTERNAL_H_ #include "libc/calls/struct/fd.internal.h" #include "libc/calls/struct/winsize.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ int ioctl_tiocgwinsz_nt(struct Fd *, struct winsize *) _Hid...
455
13
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/siginfo.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGINFO_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGINFO_H_ #include "libc/calls/struct/sigval.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct siginfo { int32_t si_signo; int32_t si_errno; int32_t si_code; /* {SICODE,SEGV,ILL,FPE,POLL}_xxx */ union ...
1,446
63
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/siginfo-xnu.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGINFO_XNU_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGINFO_XNU_H_ #include "libc/calls/struct/sigval.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct siginfo_xnu { int32_t si_signo; int32_t si_errno; int32_t si_code; int32_t si_pid; int32_t si_ui...
556
23
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/utsname.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_UTSNAME_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_UTSNAME_H_ #define SYS_NMLN 321 #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct utsname { /* cosmo abi */ char sysname[SYS_NMLN]; /* name of os */ char nodename[SYS_NMLN]; /* name of netwo...
681
23
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/aarch64.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_AARCH64_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_AARCH64_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ #define FPSIMD_MAGIC 0x46508001 #define ESR_MAGIC 0x45535201 #define EXTRA_MAGIC 0x45585401 #define SVE_MAGIC 0x53564501 struct _aarch64_ctx { uint32...
865
44
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/sigaction.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_H_ #include "libc/calls/struct/siginfo.h" #include "libc/calls/struct/sigset.h" #include "libc/calls/ucontext.h" #include "libc/dce.h" #include "libc/sysv/consts/sig.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN...
2,732
85
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/sigval.internal.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGVAL_INTERNAL_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGVAL_INTERNAL_H_ #include "libc/calls/struct/sigval.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ int sys_sigqueue(int, int, const union sigval) _Hide; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __...
400
12
jart/cosmopolitan
false
cosmopolitan/libc/calls/struct/sched_param.h
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SCHED_PARAM_H_ #define COSMOPOLITAN_LIBC_CALLS_STRUCT_SCHED_PARAM_H_ #include "libc/calls/struct/timespec.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct sched_param { int32_t sched_priority; }; int sched_get_priority_max(int); int sched_get_priority_min(...
695
22
jart/cosmopolitan
false
cosmopolitan/libc/calls/typedef/u.h
#ifndef COSMOPOLITAN_LIBC_CALLS_TYPEDEF_U_H_ #define COSMOPOLITAN_LIBC_CALLS_TYPEDEF_U_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ typedef unsigned char u_int8_t; typedef unsigned short u_int16_t; typedef unsigned u_int32_t; typedef char *caddr_t; typedef unsigned char u_char; typedef unsigned short...
586
20
jart/cosmopolitan
false
cosmopolitan/libc/intrin/phaddd.h
#ifndef COSMOPOLITAN_LIBC_INTRIN_PHADDD_H_ #define COSMOPOLITAN_LIBC_INTRIN_PHADDD_H_ #include "libc/intrin/macros.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ void phaddd(uint32_t[4], const uint32_t[4], const uint32_t[4]); #define phaddd(A, B, C) \ INTRIN_SSEVEX_X_X_X_(phaddd, SSSE3, "phaddd", IN...
466
15
jart/cosmopolitan
false
cosmopolitan/libc/intrin/describetimespec.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,547
42
jart/cosmopolitan
false
cosmopolitan/libc/intrin/isatleastwindows10.greg.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,141
32
jart/cosmopolitan
false
cosmopolitan/libc/intrin/hamming.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,049
28
jart/cosmopolitan
false
cosmopolitan/libc/intrin/bzero.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│ ╞═════════════════════════════════════════════════â•...
7,649
168
jart/cosmopolitan
false
cosmopolitan/libc/intrin/cmpxchg.h
#ifndef COSMOPOLITAN_LIBC_INTRIN_CMPXCHG_H_ #define COSMOPOLITAN_LIBC_INTRIN_CMPXCHG_H_ #include "libc/intrin/asmflag.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ #if defined(__GNUC__) && !defined(__STRICT_ANSI__) && defined(__x86__) #define _cmpxchg(IFTHING, ISEQUALTOME, REPLACEITWITHME) ...
1,400
28
jart/cosmopolitan
false
cosmopolitan/libc/intrin/sigisemptyset.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,236
39
jart/cosmopolitan
false
cosmopolitan/libc/intrin/mapviewoffileexnuma.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,571
56
jart/cosmopolitan
false
cosmopolitan/libc/intrin/getpid.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,870
55
jart/cosmopolitan
false
cosmopolitan/libc/intrin/formatint64.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,557
56
jart/cosmopolitan
false
cosmopolitan/libc/intrin/describeflags.internal.h
#ifndef COSMOPOLITAN_LIBC_INTRIN_DESCRIBEFLAGS_INTERNAL_H_ #define COSMOPOLITAN_LIBC_INTRIN_DESCRIBEFLAGS_INTERNAL_H_ #include "libc/mem/alloca.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct thatispacked DescribeFlags { unsigned flag; const char *name; }; const char *DescribeFlags(char *, s...
6,698
121
jart/cosmopolitan
false
cosmopolitan/libc/intrin/pand.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,195
35
jart/cosmopolitan
false
cosmopolitan/libc/intrin/x86marchnames.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,222
47
jart/cosmopolitan
false
cosmopolitan/libc/intrin/onarithmeticoverflow.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,419
36
jart/cosmopolitan
false
cosmopolitan/libc/intrin/safemacros.internal.h
#ifndef COSMOPOLITAN_LIBC_BITS_SAFEMACROS_H_ #define COSMOPOLITAN_LIBC_BITS_SAFEMACROS_H_ #include "libc/macros.internal.h" #include "libc/runtime/runtime.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ #define min(x, y) \ ({ \ autotype(x) MinX = (x); \ ...
2,287
72
jart/cosmopolitan
false
cosmopolitan/libc/intrin/psubsw.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,374
38
jart/cosmopolitan
false
cosmopolitan/libc/intrin/pcmpeqb.h
#ifndef COSMOPOLITAN_LIBC_INTRIN_PCMPEQB_H_ #define COSMOPOLITAN_LIBC_INTRIN_PCMPEQB_H_ #include "libc/intrin/macros.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ void pcmpeqb(uint8_t[16], const uint8_t[16], const uint8_t[16]); #define pcmpeqb(A, B, C) \ INTRIN_SSEVEX_X_X_X_(pcmpeqb, SSE2, "pcmpeqb...
472
15
jart/cosmopolitan
false
cosmopolitan/libc/intrin/paddsw.h
#ifndef COSMOPOLITAN_LIBC_INTRIN_PADDSW_H_ #define COSMOPOLITAN_LIBC_INTRIN_PADDSW_H_ #include "libc/intrin/macros.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ void paddsw(int16_t[8], const int16_t[8], const int16_t[8]); #define paddsw(A, B, C) \ INTRIN_SSEVEX_X_X_X_(paddsw, SSE2, "paddsw", INTRIN...
459
15
jart/cosmopolitan
false
cosmopolitan/libc/intrin/findmemoryinterval.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,240
38
jart/cosmopolitan
false
cosmopolitan/libc/intrin/atexit.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,262
34
jart/cosmopolitan
false
cosmopolitan/libc/intrin/scalblnl.c
/*-*- mode:c;indent-tabs-mode:t;c-basic-offset:8;tab-width:8;coding:utf-8 -*-│ │vi: set et ft=c ts=8 tw=8 fenc=utf-8 :vi│ ╚─────────────────────────────────────────────────â”...
3,037
47
jart/cosmopolitan
false
cosmopolitan/libc/intrin/memcmp.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│ ╞═════════════════════════════════════════════════â•...
8,826
208
jart/cosmopolitan
false
cosmopolitan/libc/intrin/scalbnf.c
/*-*- mode:c;indent-tabs-mode:t;c-basic-offset:8;tab-width:8;coding:utf-8 -*-│ │vi: set et ft=c ts=8 tw=8 fenc=utf-8 :vi│ ╚─────────────────────────────────────────────────â”...
3,293
69
jart/cosmopolitan
false
cosmopolitan/libc/intrin/cxaatexit.internal.h
#ifndef COSMOPOLITAN_LIBC_RUNTIME_CXAATEXIT_H_ #define COSMOPOLITAN_LIBC_RUNTIME_CXAATEXIT_H_ #include "libc/intrin/nopl.internal.h" #include "libc/stdio/stdio.h" #include "libc/thread/tls.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct CxaAtexitBlocks { struct CxaAtexitBlock { unsigned mas...
982
38
jart/cosmopolitan
false
cosmopolitan/libc/intrin/paddusw.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,372
40
jart/cosmopolitan
false
cosmopolitan/libc/intrin/flushviewoffile.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,701
44
jart/cosmopolitan
false
cosmopolitan/libc/intrin/paddd.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,269
38
jart/cosmopolitan
false
cosmopolitan/libc/intrin/repstosb.h
#ifndef COSMOPOLITAN_LIBC_INTRIN_REPSTOSB_H_ #define COSMOPOLITAN_LIBC_INTRIN_REPSTOSB_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) forceinline void *repstosb(void *dest, unsigned char al, size_t cx) { unsigned char *di = (unsigned char *)dest; while (cx) *di++ = al, cx--; return di; } #if defined(__GNUC__) && (def...
964
26
jart/cosmopolitan
false
cosmopolitan/libc/intrin/lshrti3.c
/* clang-format off */ /* ===-- lshrti3.c - Implement __lshrti3 -----------------------------------=== * * The LLVM Compiler Infrastructure * * This file is dual licensed under the MIT and the University of Illinois Open * Source Licenses. See LICENSE.TXT for details. * * ===-----------------...
1,295
47
jart/cosmopolitan
false
cosmopolitan/libc/intrin/fmaxf.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,236
36
jart/cosmopolitan
false
cosmopolitan/libc/intrin/describesigset.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,213
79
jart/cosmopolitan
false
cosmopolitan/libc/intrin/interrupts.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│ ╞═════════════════════════════════════════════════â•...
6,204
182
jart/cosmopolitan
false
cosmopolitan/libc/intrin/getcpuidos.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,071
34
jart/cosmopolitan
false
cosmopolitan/libc/intrin/futex.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,195
42
jart/cosmopolitan
false
cosmopolitan/libc/intrin/stracef.greg.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,229
35
jart/cosmopolitan
false
cosmopolitan/libc/intrin/describesocklevel.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,247
34
jart/cosmopolitan
false
cosmopolitan/libc/intrin/psrld.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,282
39
jart/cosmopolitan
false
cosmopolitan/libc/intrin/phsubsw.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,563
46
jart/cosmopolitan
false
cosmopolitan/libc/intrin/tlsisrequired.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,981
27
jart/cosmopolitan
false
cosmopolitan/libc/intrin/psrldqs.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,625
94
jart/cosmopolitan
false
cosmopolitan/libc/intrin/pmaxsw.h
#ifndef COSMOPOLITAN_LIBC_INTRIN_PMAXSW_H_ #define COSMOPOLITAN_LIBC_INTRIN_PMAXSW_H_ #include "libc/intrin/macros.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ void pmaxsw(int16_t[8], const int16_t[8], const int16_t[8]); #define pmaxsw(A, B, C) \ INTRIN_SSEVEX_X_X_X_(pmaxsw, SSE2, "pmaxsw", INTRIN...
459
15
jart/cosmopolitan
false
cosmopolitan/libc/intrin/describedirfd.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,087
28
jart/cosmopolitan
false
cosmopolitan/libc/intrin/por.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,192
35
jart/cosmopolitan
false
cosmopolitan/libc/intrin/reopenfile.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,826
45
jart/cosmopolitan
false
cosmopolitan/libc/intrin/virtualprotect.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,748
43
jart/cosmopolitan
false
cosmopolitan/libc/intrin/describeprctloperation.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,316
38
jart/cosmopolitan
false
cosmopolitan/libc/intrin/flushfilebuffers.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,656
44
jart/cosmopolitan
false
cosmopolitan/libc/intrin/pslldq.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,259
37
jart/cosmopolitan
false
cosmopolitan/libc/intrin/kprintf.h
#ifndef COSMOPOLITAN_LIBC_INTRIN_KPRINTF_H_ #define COSMOPOLITAN_LIBC_INTRIN_KPRINTF_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ void kprintf(const char *, ...); size_t ksnprintf(char *, size_t, const char *, ...); void kvprintf(const char *, va_list); size_t kvsnprintf(char *, size_t, const char *,...
481
15
jart/cosmopolitan
false
cosmopolitan/libc/intrin/sched_yield.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│ ╞═════════════════════════════════════════════════â•...
4,221
112
jart/cosmopolitan
false
cosmopolitan/libc/intrin/sigismember.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,467
43
jart/cosmopolitan
false
cosmopolitan/libc/intrin/sigemptyset.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,095
32
jart/cosmopolitan
false
cosmopolitan/libc/intrin/exit.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│ ╞═════════════════════════════════════════════════â•...
4,185
94
jart/cosmopolitan
false
cosmopolitan/libc/intrin/pmulhw.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,324
38
jart/cosmopolitan
false
cosmopolitan/libc/intrin/describemagnums.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,195
34
jart/cosmopolitan
false
cosmopolitan/libc/intrin/phsubw.h
#ifndef COSMOPOLITAN_LIBC_INTRIN_PHSUBW_H_ #define COSMOPOLITAN_LIBC_INTRIN_PHSUBW_H_ #include "libc/intrin/macros.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ void phsubw(int16_t[8], const int16_t[8], const int16_t[8]); #define phsubw(A, B, C) \ INTRIN_SSEVEX_X_X_X_(phsubw, SSSE3, "phsubw", INTRI...
463
15
jart/cosmopolitan
false
cosmopolitan/libc/intrin/shufps.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,264
35
jart/cosmopolitan
false
cosmopolitan/libc/intrin/_getenv.internal.h
#ifndef COSMOPOLITAN_LIBC_INTRIN__GETENV_INTERNAL_H_ #define COSMOPOLITAN_LIBC_INTRIN__GETENV_INTERNAL_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct Env { char *s; int i; }; struct Env _getenv(char **, const char *) _Hide; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */...
379
16
jart/cosmopolitan
false
cosmopolitan/libc/intrin/strncmp.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,350
38
jart/cosmopolitan
false
cosmopolitan/libc/intrin/pshufd.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,250
35
jart/cosmopolitan
false
cosmopolitan/libc/intrin/kipoptnames.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,268
41
jart/cosmopolitan
false
cosmopolitan/libc/intrin/lengthuint64.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,837
70
jart/cosmopolitan
false
cosmopolitan/libc/intrin/pcmpeqw.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,296
36
jart/cosmopolitan
false
cosmopolitan/libc/intrin/promises.internal.h
#ifndef COSMOPOLITAN_LIBC_INTRIN_PROMISES_H_ #define COSMOPOLITAN_LIBC_INTRIN_PROMISES_H_ #define PROMISE_STDIO 0 #define PROMISE_RPATH 1 #define PROMISE_WPATH 2 #define PROMISE_CPATH 3 #define PROMISE_DPATH 4 #define PROMISE_FLOCK 5 #define PROMISE_FATTR 6 #define PROMISE_INET 7 #defi...
1,082
40
jart/cosmopolitan
false
cosmopolitan/libc/intrin/punpcklwd.h
#ifndef COSMOPOLITAN_LIBC_INTRIN_PUNPCKLWD_H_ #define COSMOPOLITAN_LIBC_INTRIN_PUNPCKLWD_H_ #include "libc/intrin/macros.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ void punpcklwd(uint16_t[8], const uint16_t[8], const uint16_t[8]); #define punpcklwd(A, B, C) ...
563
16
jart/cosmopolitan
false
cosmopolitan/libc/intrin/pandn.h
#ifndef COSMOPOLITAN_LIBC_INTRIN_PANDN_H_ #define COSMOPOLITAN_LIBC_INTRIN_PANDN_H_ #include "libc/intrin/macros.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ void pandn(uint64_t[2], const uint64_t[2], const uint64_t[2]); #define pandn(A, B, C) \ INTRIN_SSEVEX_X_X_X_(pandn, SSE2, "pandn", INTRIN_NO...
458
15
jart/cosmopolitan
false
cosmopolitan/libc/intrin/bswap.h
#ifndef COSMOPOLITAN_LIBC_BITS_BSWAP_H_ #define COSMOPOLITAN_LIBC_BITS_BSWAP_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ uint16_t bswap_16(uint16_t) pureconst; uint32_t bswap_32(uint32_t) pureconst; uint32_t bswap_64(uint32_t) pureconst; #if defined(__GNUC__) && !defined(__STRICT_ANSI__) #define bs...
606
19
jart/cosmopolitan
false
cosmopolitan/libc/intrin/bitreverse64.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,216
32
jart/cosmopolitan
false
cosmopolitan/libc/intrin/tpenc.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,781
68
jart/cosmopolitan
false
cosmopolitan/libc/intrin/shufpd.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,197
33
jart/cosmopolitan
false