Remove trailing whitespace from all files (#497)

This commit is contained in:
Jared Miller 2022-07-20 23:31:16 -04:00 committed by GitHub
parent d3f3cb7ab4
commit 7e2eae5c15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
356 changed files with 41701 additions and 41680 deletions

View file

@ -96,7 +96,7 @@ char *realpath(const char *filename, char *resolved)
return 0;
}
if (l >= PATH_MAX) goto toolong;
if (l >= 4 && READ32LE(filename) == READ32LE("/zip") &&
if (l >= 4 && READ32LE(filename) == READ32LE("/zip") &&
(!filename[4] || filename[4] == '/')) {
return ResolvePath(resolved, filename, l);
}

View file

@ -32,7 +32,7 @@ void PrintGarbageNumeric(FILE *f) {
fprintf(f, " garbage entry parent frame original ret callback arg \n");
fprintf(f, "-------------- -------------- ------------------ ------------------ ------------------\n");
for (i = __garbage.i; i--;) {
fprintf(f, "0x%012lx 0x%012lx 0x%016lx 0x%016lx 0x%016lx\n",
fprintf(f, "0x%012lx 0x%012lx 0x%016lx 0x%016lx 0x%016lx\n",
__garbage.p + i,
__garbage.p[i].frame,
__garbage.p[i].ret,

View file

@ -48,11 +48,11 @@
//
//
//
//
//
//
//
//
//
//
// THERE WILL BE BLOCKS march 01 2017
//
// @see libc/str/str.h

View file

@ -5,11 +5,11 @@
/*
Compute probability of measured Chi Square value.
This code was developed by Gary Perlman of the Wang
Institute (full citation below) and has been minimally
modified for use in this program.
*/
#include "libc/math.h"

View file

@ -151,12 +151,12 @@ void rt_end(double *r_ent, double *r_chisq, double *r_mean,
in the entropy calculation below. While we're at it,
we sum of all the data which will be used to compute the
mean. */
cexp_ = totalc / (binary ? 2.0 : 256.0); /* Expected count per bin */
for (i = 0; i < (binary ? 2 : 256); i++) {
double a = ccount[i] - cexp_;
prob[i] = ((double) ccount[i]) / totalc;
prob[i] = ((double) ccount[i]) / totalc;
chisq += (a * a) / cexp_;
datasum += ((double) i) * ccount[i];
}

View file

@ -24,9 +24,9 @@
▄██▀▄▄░░▀▐▄████▄ █████▀▄░░█▀▄▀░░ ▄██░
█████▄▄▄███▀░█▌██▄▀▀█████▄▄░░░▄▄███▀██▄ ▄▀▀▀▄▄
▀██████▀■▄█▄▄ ░▀███████████████▓▓░░▄██▀▄████▄▄▀▄
█▀█ █ █▀█ █▀█ █▄▀ ▐▀█▀▌█▀█ █▀█ █▄ █ ▀█▀ █▀█ █▀▀
█▀▄ █ █ █ █ █ ▀▄ █ █▀▄ █ █ █ ▀█ █ █ ▀▀█
█▄█ █▄▌█▄█ █▄█ █ █ █ █ █ █▄█ █ █ ▄█▄ █▄█ █▄█
THERE WILL BE BLOCKS march 01 2017

View file

@ -187,7 +187,7 @@ static bool increment_overflow(int *, int);
static bool increment_overflow_time(time_t *, int_fast32_t);
static int_fast32_t leapcorr(struct state const *, time_t);
static bool normalize_overflow32(int_fast32_t *, int *, int);
static struct tm *localtime_timesub(time_t const *, int_fast32_t,
static struct tm *localtime_timesub(time_t const *, int_fast32_t,
struct state const *, struct tm *);
static bool localtime_typesequiv(struct state const *, int, int);
static bool localtime_tzparse(char const *, struct state *, struct state *);

View file

@ -109,7 +109,7 @@ double asin(double x)
int ng;
uint32_t ix,lx;
double z,r,s,f,c;
union {
union {
double f;
int64_t s;
uint64_t i;

View file

@ -36,7 +36,7 @@ asm(".include \"libc/disclaimer.inc\"");
/**
* Returns hyperbolic sine of 𝑥.
*
*
* sinh(x) = (exp(x) - 1/exp(x))/2
* = (exp(x)-1 + (exp(x)-1)/exp(x))/2
* = x + x^3/6 + o(x^5)

View file

@ -36,7 +36,7 @@ asm(".include \"libc/disclaimer.inc\"");
/**
* Returns hyperbolic sine of 𝑥.
*
*
* sinh(x) = (exp(x) - 1/exp(x))/2
* = (exp(x)-1 + (exp(x)-1)/exp(x))/2
* = x + x^3/6 + o(x^5)

View file

@ -37,7 +37,7 @@ asm(".include \"libc/disclaimer.inc\"");
/**
* Returns hyperbolic sine of 𝑥.
*
*
* sinh(x) = (exp(x) - 1/exp(x))/2
* = (exp(x)-1 + (exp(x)-1)/exp(x))/2
* = x + x^3/6 + o(x^5)

View file

@ -75,7 +75,7 @@ kCombiningCharsLz4:
.byte 0x00,0xa0,0x57,0x00,0x50,0xfe,0x7f,0xdf # áW P
.byte 0xe0,0xff,0x41,0x01,0x28,0x1f,0x40,0x2f #αλA(@/
.byte 0x00,0xff,0x00,0xe0,0xfd,0x66,0x00,0x00 # λ α²f  
.byte 0x00,0xc3,0x01,0x00,0x1e,0x00,0x64,0x20 #   d
.byte 0x00,0xc3,0x01,0x00,0x1e,0x00,0x64,0x20 #   d
.byte 0x00,0x20,0xcc,0x01,0x0b,0x0f,0xd2,0x01 # 
.byte 0x1d,0x06,0x66,0x00,0x1f,0x00,0x01,0x00 #f   
.byte 0x62,0x13,0x1c,0x04,0x00,0x26,0x0c,0x00 #b & 
@ -110,7 +110,7 @@ kCombiningCharsLz4:
.byte 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff #λλλλλλλλ
.byte 0xdb,0x1f,0x40,0x60,0x1f,0x4b,0x2f,0x00 #@`K/ 
.byte 0x00,0x06,0x1a,0x08,0x1f,0x80,0x3f,0x00 # Ç 
.byte 0x0c,0x1f,0x0e,0x7f,0x00,0x2c,0x1f,0x20 # ,
.byte 0x0c,0x1f,0x0e,0x7f,0x00,0x2c,0x1f,0x20 # ,
.byte 0x1d,0x00,0x09,0x0e,0x3e,0x1c,0x2f,0xc0 # >/
.byte 0x07,0xdd,0x01,0xbd,0x22,0x6e,0xf0,0x23 #.n.
.byte 0x1e,0x0f,0x1c,0x00,0x01,0x1f,0x60,0x64 # `d
@ -120,7 +120,7 @@ kCombiningCharsLz4:
.byte 0x01,0x00,0xf0,0x0c,0x33,0x80,0xef,0x1f # 3Ç
.byte 0x2e,0x00,0x13,0x08,0x52,0x0d,0x48,0xc0 #. RH
.byte 0x7f,0x00,0x1e,0x66,0x02,0x1f,0xd3,0xe4 # fΣ
.byte 0x02,0x01,0x36,0x80,0xf8,0x07,0xc0,0x20 #6ǰ
.byte 0x02,0x01,0x36,0x80,0xf8,0x07,0xc0,0x20 #6ǰ
.byte 0x00,0x7e,0x00,0x3f,0xc0,0x1f,0x1f,0xc7 # ~ 
.byte 0x02,0x06,0x19,0x5c,0x28,0x03,0x3f,0xf8 #\(°
.byte 0x85,0x0d,0xb1,0x1c,0x0b,0x22,0xb0,0x01 #à.