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/gdtoa/strtopdd.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 6,015 | 165 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/wcstod.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,050 | 28 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/gethex.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 7,999 | 303 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/strtorf.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,911 | 80 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/strtodg.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 21,316 | 912 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/README | This directory contains source for a library of binary -> decimal
and decimal -> binary conversion routines, for single-, double-,
and extended-precision IEEE binary floating-point arithmetic, and
other IEEE-like binary floating-point, including "double double",
as in
T. J. Dekker, "A Floating-Point Technique for Ext... | 17,799 | 420 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/g__fmt.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 5,338 | 151 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/g_ddfmt_p.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 6,164 | 173 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/gmisc.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,634 | 78 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/dmisc.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 4,709 | 133 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/gdtoa.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 += THIRD_PARTY_GDTOA
THIRD_PARTY_GDTOA_ARTIFACTS += THIRD_PARTY_GDTOA_A
THIRD_PARTY_GDTOA = $(THIRD_PARTY_GDTOA_A... | 2,166 | 56 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/strtoIdd.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,665 | 60 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/strtopf.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,683 | 67 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/strtodI.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 4,757 | 114 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/hexnan.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 5,045 | 146 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/g_ffmt.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 4,020 | 83 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/strtord.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 4,004 | 84 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/strtold.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,147 | 42 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/strtoIx.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,617 | 62 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/gdtoa_fltrnds.inc | /* clang-format off */
FPI *fpi, fpi1;
int Rounding;
Rounding = FLT_ROUNDS;
fpi = &fpi0;
if (Rounding != FPI_Round_near) {
fpi1 = fpi0;
fpi = &fpi1;
fpi1.rounding = Rounding;
}
| 190 | 12 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/strtod_l.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,993 | 25 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/g_xfmt_p.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 4,597 | 105 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/lock.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,308 | 40 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/lock.h | #ifndef COSMOPOLITAN_THIRD_PARTY_GDTOA_LOCK_H_
#define COSMOPOLITAN_THIRD_PARTY_GDTOA_LOCK_H_
#include "libc/intrin/nopl.internal.h"
#include "libc/thread/tls.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
int __gdtoa_lock(void);
int __gdtoa_unlock(void);
int __gdtoa_lock1(void);
int __gdtoa_unlock1(vo... | 981 | 28 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/strtorx.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 4,238 | 91 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/ulp.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,371 | 59 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/strtoId.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,587 | 58 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/wcstof.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,086 | 29 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/sum.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,861 | 78 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/g_xfmt.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 4,123 | 89 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/strtordd.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 6,480 | 182 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/strtof.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,758 | 69 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/misc.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 10,105 | 432 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/g_dfmt_p.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 4,557 | 100 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/strtof_l.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,984 | 25 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/wcstold.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,093 | 29 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/strtoIg.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 5,247 | 135 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/g_Qfmt_p.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 4,715 | 107 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/hd_init.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 4,091 | 52 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/strtoIf.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,533 | 56 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/wcstold_l.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,039 | 26 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/atof.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,969 | 27 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/gdtoa.h | #ifndef COSMOPOLITAN_THIRD_PARTY_GDTOA_GDTOA_H_
#define COSMOPOLITAN_THIRD_PARTY_GDTOA_GDTOA_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
/**
* Configures g_*fmt()
*
* @param ic
* 0 ==> Infinity or NaN
* 1 ==> infinity or nan
* 2 ==> INFINITY or NAN
* 3 ==> Inf or NaN
* 4 ==> inf or nan
... | 3,934 | 122 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/g_ffmt_p.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 4,350 | 94 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/smisc.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 4,532 | 129 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/strtopx.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 4,062 | 80 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/strtod.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 17,454 | 688 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/gdtoa.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 19,570 | 687 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/g_ddfmt.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 5,518 | 152 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/strtold_l.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,148 | 41 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/dtoa.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 17,615 | 624 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/strtopd.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,319 | 47 | jart/cosmopolitan | false |
cosmopolitan/third_party/gdtoa/gdtoa.internal.h | #include "libc/math.h"
#include "libc/mem/mem.h"
#include "libc/runtime/fenv.h"
#include "libc/str/str.h"
#include "third_party/gdtoa/gdtoa.h"
asm(".ident\t\"\\n\\n\
gdtoa (MIT License)\\n\
The author of this software is David M. Gay\\n\
Kudos go to Guy L. Steele, Jr. and Jon L. White\\n\
Copyright (C) 1997, 1998, 200... | 16,095 | 446 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v2.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,075 | 153 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggml.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 516,923 | 15,928 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/LICENSE | MIT License
Copyright (c) 2023 Georgi Gerganov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | 1,072 | 22 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/common.cc | /*-*-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,843 | 852 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/fp16.h | #ifndef COSMOPOLITAN_THIRD_PARTY_GGML_F16_H_
#define COSMOPOLITAN_THIRD_PARTY_GGML_F16_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#ifdef __ARM_NEON
// we use the built-in 16-bit float type
typedef __fp16 ggml_fp16_t;
#else
typedef uint16_t ggml_fp16_t;
#endif
void ggml_fp16_init(void);
// convert... | 674 | 25 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggml.h | // -*- c; c-basic-offset:4 -*-
#ifndef COSMOPOLITAN_THIRD_PARTY_LLAMA_CPP_GGML_H_
#define COSMOPOLITAN_THIRD_PARTY_LLAMA_CPP_GGML_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
// clang-format off
//
// GGML Tensor Library
//
// This documentation is still a work in progress.
// If you wish some specif... | 39,591 | 1,161 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v1.q5_1.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 12,871 | 353 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v1.q4_1.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,971 | 473 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v2.q4_0.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 15,925 | 397 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v2.q5_0.h | #ifndef COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V2_Q5_0_H_
#define COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V2_Q5_0_H_
#include "third_party/ggml/fp16.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#define V2_QK5_0 32
typedef struct {
ggml_fp16_t d; // delta
uint8_t qh[4]; // 5-th bit ... | 1,000 | 25 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v2.q8_1.h | #ifndef COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V2_Q8_1_H_
#define COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V2_Q8_1_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#define V2_QK8_1 32
typedef struct {
float d; // delta
float s; // d * sum(qs[i])
int8_t qs[V2_QK8_1]; // quants
} blo... | 657 | 20 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/companionai.txt |
This is a transcript of a 1000 page, never ending conversation between a human named USER_NAME and a synthetic person named CompanionAI.
CompanionAI is an analytical intelligence that's been trained on the sum of human knowledge Facebook scraped from the public Internet.
CompanionAI's purpose is to share knowledge wor... | 3,976 | 55 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggml.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 += THIRD_PARTY_GGML
################################################################################
# single fil... | 7,006 | 214 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/README.cosmo | DESCRIPTION
ggml is a machine learning library useful for LLM inference on CPUs
LICENSE
MIT
ORIGIN
https://github.com/ggerganov/llama.cpp
d8bd0013e8768aaa3dc9cfc1ff01499419d5348e
LOCAL CHANGES
- Maintaining support for deprecated file formats
- Make it possible for loaded prompts to be cached to disk... | 870 | 29 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v2.q4_0.h | #ifndef COSMOPOLITAN_THIRD_PARTY_GGML_V2_Q4_0_H_
#define COSMOPOLITAN_THIRD_PARTY_GGML_V2_Q4_0_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#define V2_QK4_0 32
typedef struct {
float d; // delta
uint8_t qs[V2_QK4_0 / 2]; // nibbles / quants
} block_v2_q4_0;
void dequantize_row... | 899 | 23 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v1.q8_1.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 10,367 | 241 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v2.q4_1.h | #ifndef COSMOPOLITAN_THIRD_PARTY_GGML_V2_Q4_1_H_
#define COSMOPOLITAN_THIRD_PARTY_GGML_V2_Q4_1_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#define V2_QK4_1 32
typedef struct {
float d; // delta
float m; // min
uint8_t qs[V2_QK4_1 / 2]; // nibbles / quants
}... | 890 | 23 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v1.q4_1.h | #ifndef COSMOPOLITAN_THIRD_PARTY_GGML_V1_Q4_1_H_
#define COSMOPOLITAN_THIRD_PARTY_GGML_V1_Q4_1_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#define V1_QK4_1 32
typedef struct {
float d; // delta
float m; // min
uint8_t qs[V1_QK4_1 / 2]; // nibbles / quants
}... | 890 | 23 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/common.h | // -*- c++; c-basic-offset:4 -*-
#ifndef COSMOPOLITAN_THIRD_PARTY_GGML_COMMON_H_
#define COSMOPOLITAN_THIRD_PARTY_GGML_COMMON_H_
#include "libc/calls/struct/termios.h"
#include "libc/runtime/runtime.h"
#include "libc/stdio/stdio.h"
#include "third_party/ggml/llama.h"
#include "third_party/libcxx/random"
#include "third... | 5,398 | 138 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v1.q5_1.h | #ifndef COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V1_Q5_1_H_
#define COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V1_Q5_1_H_
#include "third_party/ggml/fp16.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#define V1_QK5_1 32
typedef struct {
ggml_fp16_t d; // delta
ggml_fp16_t m; // min
uin... | 1,036 | 26 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v1.q4_0.h | #ifndef COSMOPOLITAN_THIRD_PARTY_GGML_V1_Q4_0_H_
#define COSMOPOLITAN_THIRD_PARTY_GGML_V1_Q4_0_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#define V1_QK4_0 32
typedef struct {
float d; // delta
uint8_t qs[V1_QK4_0 / 2]; // nibbles / quants
} block_v1_q4_0;
void dequantize_row... | 899 | 23 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v1.q8_0.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 13,013 | 326 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/llama.h | // -*- c++; c-basic-offset:4 -*-
#ifndef LLAMA_H
#define LLAMA_H
#include "libc/intrin/bits.h"
#include "third_party/libcxx/string"
#include "third_party/libcxx/vector"
// clang-format off
#ifdef LLAMA_SHARED
# if defined(_WIN32) && !defined(__MINGW32__)
# ifdef LLAMA_BUILD
# define LLAMA_API __de... | 14,201 | 279 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v2.q8_0.h | #ifndef COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V2_Q8_0_H_
#define COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V2_Q8_0_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#define V2_QK8_0 32
typedef struct {
float d; // delta
int8_t qs[V2_QK8_0]; // quants
} block_v2_q8_0;
void dequantize_row_v2_q8_0(c... | 894 | 23 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/perplexity.cc | /*-*-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,895 | 198 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v1.q4_2.h | #ifndef COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V1_Q4_2_H_
#define COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V1_Q4_2_H_
#include "third_party/ggml/fp16.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#define V1_QK4_2 16
typedef struct {
ggml_fp16_t d; // delta
uint8_t qs[V1_QK4_2 / 2]; // nibbles /... | 949 | 24 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v2.q5_0.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 15,783 | 394 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v1.q8_1.h | #ifndef COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V1_Q8_1_H_
#define COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V1_Q8_1_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#define V1_QK8_1 32
typedef struct {
float d; // delta
float s0; // d * sum(qs[i]) low
float s1; // d * sum(... | 708 | 21 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v1.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,690 | 166 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/fp16.internal.h | #ifndef COSMOPOLITAN_THIRD_PARTY_GGML_FP16_INTERNAL_H_
#define COSMOPOLITAN_THIRD_PARTY_GGML_FP16_INTERNAL_H_
#include "libc/literal.h"
#include "libc/str/str.h"
#include "third_party/ggml/fp16.h"
#include "third_party/intel/immintrin.internal.h"
#include "third_party/libcxx/math.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0... | 6,128 | 193 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v2.q5_1.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 15,932 | 410 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v1.q4_0.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,391 | 715 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/main.cc | /*-*-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,824 | 976 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v2.internal.h | #ifndef COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V2_INTERNAL_H_
#define COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V2_INTERNAL_H_
#include "libc/str/str.h"
#include "third_party/aarch64/arm_neon.h"
#include "third_party/intel/immintrin.internal.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#if __AVX__ || __AVX2__ |... | 6,002 | 153 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v1.q8_0.h | #ifndef COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V1_Q8_0_H_
#define COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V1_Q8_0_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#define V1_QK8_0 32
typedef struct {
float d; // delta
int8_t qs[V1_QK8_0]; // quants
} block_v1_q8_0;
void dequantize_row_v1_q8_0(c... | 894 | 23 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/llama_util.h | // -*- c++; c-basic-offset:4 -*-
#ifndef LLAMA_UTIL_H
#define LLAMA_UTIL_H
#include "libc/calls/struct/rlimit.h"
#include "libc/dce.h"
#include "libc/fmt/fmt.h"
#include "libc/runtime/sysconf.h"
#include "libc/str/str.h"
#include "libc/sysv/consts/madv.h"
#include "libc/sysv/consts/map.h"
#include "libc/sysv/consts/pro... | 11,914 | 399 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v1.q5_0.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 13,511 | 351 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v1.q5_0.h | #ifndef COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V1_Q5_0_H_
#define COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V1_Q5_0_H_
#include "third_party/ggml/fp16.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#define V1_QK5_0 32
typedef struct {
ggml_fp16_t d; // delta
uint8_t qh[4]; // 5-th bit ... | 1,000 | 25 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/quantize.cc | /*-*-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,477 | 124 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/fp16.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,891 | 136 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v2.q5_1.h | #ifndef COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V2_Q5_1_H_
#define COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V2_Q5_1_H_
#include "third_party/ggml/fp16.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#define V2_QK5_1 32
typedef struct {
ggml_fp16_t d; // delta
ggml_fp16_t m; // min
uin... | 1,036 | 26 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/llama.cc | /*-*-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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 106,251 | 2,998 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v1.q4_2.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,350 | 298 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v2.q8_0.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 13,566 | 333 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v2.q4_1.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,912 | 254 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v2.q8_1.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â
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 10,056 | 222 | jart/cosmopolitan | false |
cosmopolitan/third_party/ggml/ggjt.v1.internal.h | #ifndef COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V1_INTERNAL_H_
#define COSMOPOLITAN_THIRD_PARTY_GGML_GGJT_V1_INTERNAL_H_
#include "libc/str/str.h"
#include "third_party/intel/immintrin.internal.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
// clang-format off
#ifdef __AVX__
// horizontally add 8 floats
sta... | 5,334 | 135 | jart/cosmopolitan | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.