Change noinline to dontinline (#312)

We defined `noinline` as an abbreviation for the longer version
`__attribute__((__noinline__))` which caused name clashes since
third party codebases often write it as `__attribute__((noinline))`.
This commit is contained in:
Gautham 2021-11-13 04:42:18 +05:30 committed by GitHub
parent ca611efc43
commit 6f658f058b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
59 changed files with 122 additions and 122 deletions

View file

@ -185,7 +185,7 @@ static void float2rgb(unsigned n, unsigned char *u, float *f) {
* This makes subtraction look good by flattening out the bias curve
* that PC display manufacturers like to use.
*/
static noinline void rgb2lin(unsigned n, float *f, const unsigned char *u) {
static dontinline void rgb2lin(unsigned n, float *f, const unsigned char *u) {
unsigned i;
rgb2float(n, f, u);
for (i = 0; i < n; ++i) f[i] = frgb2lin(f[i]);
@ -194,7 +194,7 @@ static noinline void rgb2lin(unsigned n, float *f, const unsigned char *u) {
/**
* Converts linear RGB to standard RGB.
*/
static noinline void rgb2std(unsigned n, unsigned char *u, float *f) {
static dontinline void rgb2std(unsigned n, unsigned char *u, float *f) {
unsigned i;
for (i = 0; i < n; ++i) f[i] = frgb2std(f[i]);
float2rgb(n, u, f);

View file

@ -23,7 +23,7 @@
#include "libc/x/x.h"
#include "tool/viz/lib/stringbuilder.h"
static noinline void StringBuilderGrow(size_t need, struct StringBuilder *sb) {
static dontinline void StringBuilderGrow(size_t need, struct StringBuilder *sb) {
size_t n2;
n2 = MAX(16, sb->n);
while (sb->i + need > n2) n2 += n2 >> 1;

View file

@ -464,7 +464,7 @@ static unsigned char Opacify2(unsigned yw, unsigned xw,
}
}
static noinline void PrintImage2(unsigned yw, unsigned xw,
static dontinline void PrintImage2(unsigned yw, unsigned xw,
unsigned char img[4][yw][xw], unsigned yn,
unsigned xn) {
bool didhalfy;
@ -500,7 +500,7 @@ static noinline void PrintImage2(unsigned yw, unsigned xw,
printf("\e[0m\n");
}
static noinline void *DeblinterlaceRgba2(unsigned yn, unsigned xn,
static dontinline void *DeblinterlaceRgba2(unsigned yn, unsigned xn,
unsigned char D[4][yn][xn],
const unsigned char S[yn][xn][4]) {
unsigned y, x;
@ -587,7 +587,7 @@ void ProcessImageMagikarp(unsigned yn, unsigned xn,
yn, xn, lround(r_));
}
noinline void WithImageFile(const char *path,
dontinline void WithImageFile(const char *path,
void fn(unsigned yn, unsigned xn,
unsigned char img[yn][xn][4])) {
struct stat st;