mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-08 04:08:32 +00:00
Simplify ftrace_hook()
We now have a test to prove that its transitive closure doesn't perform floating point computations.
This commit is contained in:
parent
61b9677c05
commit
b6182db813
11 changed files with 142 additions and 85 deletions
8
third_party/stb/stb_image.c
vendored
8
third_party/stb/stb_image.c
vendored
|
@ -1031,11 +1031,9 @@ static const unsigned char stbi__jpeg_dezigzag[64 + 15] = {
|
|||
63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63};
|
||||
|
||||
// decode one 64-entry block
|
||||
static optimizespeed int stbi__jpeg_decode_block(stbi__jpeg *j, short data[64],
|
||||
stbi__huffman *hdc,
|
||||
stbi__huffman *hac,
|
||||
int16_t *fac, int b,
|
||||
uint16_t *dequant) {
|
||||
static int stbi__jpeg_decode_block(stbi__jpeg *j, short data[64],
|
||||
stbi__huffman *hdc, stbi__huffman *hac,
|
||||
int16_t *fac, int b, uint16_t *dequant) {
|
||||
unsigned int zig;
|
||||
int diff, dc, k, t, c, r, s, rs;
|
||||
if (j->code_bits < 16) stbi__grow_buffer_unsafe(j);
|
||||
|
|
5
third_party/stb/stb_image_resize.c
vendored
5
third_party/stb/stb_image_resize.c
vendored
|
@ -16,12 +16,12 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/stb/stb_image_resize.h"
|
||||
#include "libc/assert.h"
|
||||
#include "libc/macros.internal.h"
|
||||
#include "libc/math.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/stb/stb_image_resize.h"
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
stb_image_resize (Public Domain)\\n\
|
||||
|
@ -853,8 +853,7 @@ static float* stbir__get_decode_buffer(stbir__info* stbir_info) {
|
|||
#define STBIR__DECODE(type, colorspace) \
|
||||
((type) * (STBIR_MAX_COLORSPACES) + (colorspace))
|
||||
|
||||
static optimizespeed void stbir__decode_scanline(stbir__info* stbir_info,
|
||||
int n) {
|
||||
static void stbir__decode_scanline(stbir__info* stbir_info, int n) {
|
||||
int c;
|
||||
int channels = stbir_info->channels;
|
||||
int alpha_channel = stbir_info->alpha_channel;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue