mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 00:08:30 +00:00
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:
parent
ca611efc43
commit
6f658f058b
59 changed files with 122 additions and 122 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue