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:
Justine Tunney 2023-06-06 11:10:38 -07:00
parent 61b9677c05
commit b6182db813
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
11 changed files with 142 additions and 85 deletions

View file

@ -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;