Repository Analysis

nothings/stb

stb single-file public domain libraries for C/C++

5.9 Low AI signal View on GitHub
5.9
Adjusted Score
5.9
Raw Score
100%
Time Factor
2026-04-15
Last Push
33,799
Stars
C
Language
109,822
Lines of Code
113
Files
879
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 2LOW 877

Pattern Findings

879 matches across 4 categories. Click a row to expand file-level details.

Over-Commented Block875 hits · 642 pts
SeverityFileLineSnippet
LOWstb_c_lexer.h1// stb_c_lexer.h - v0.12 - public domain Sean Barrett 2013
LOWstb_c_lexer.h21// 0.04 fix octal parsing bug
LOWstb_c_lexer.h41// github:mundusnine (bugfix)
LOWstb_c_lexer.h61#define STB_C_LEX_C_HEX_INTS Y // "0x[0-9a-fA-F]+" CLEX_intlit
LOWstb_c_lexer.h81 // "<<=" CLEX_shleq ">>=" CLEX_shreq
LOWstb_c_lexer.h141extern "C" {
LOWstb_c_lexer.h161extern void stb_c_lexer_get_location(const stb_lexer *lexer, const char *where, stb_lex_location *loc);
LOWstb_c_lexer.h221typedef double stb__clex_int;
LOWstb_c_lexer.h241#define STB__clex_hex_ints
LOWstb_image_write.h201#ifdef _WIN32
LOWstb_image_write.h221#elif !defined(STBIW_MALLOC) && !defined(STBIW_FREE) && !defined(STBIW_REALLOC) && !defined(STBIW_REALLOC_SIZED)
LOWstb_image_write.h801 } else
LOWstb_image_write.h881 (bitbuf |= (code) << bitcount, bitcount += (codebits), stbiw__zlib_flush())
LOWstb_image_resize2.h401typedef uint32_t stbir_uint32;
LOWstb_image_resize2.h421//
LOWstb_image_resize2.h541// * Separate input and output data types
LOWstb_image_resize2.h641STBIRDEF int stbir_set_non_pm_alpha_speed_over_quality( STBIR_RESIZE * resize, int non_pma_alpha_speed_over_quality );
LOWstb_image_resize2.h661STBIRDEF int stbir_resize_extended( STBIR_RESIZE * resize );
LOWstb_image_resize2.h681// Note that you MUST call stbir_build_samplers_with_splits before stbir_resize_extended_split!
LOWstb_image_resize2.h701//
LOWstb_image_resize2.h721// return optional_output; // return the optional buffer that we filled
LOWstb_image_resize2.h781#endif // STBIR_INCLUDE_STB_IMAGE_RESIZE2_H
LOWstb_image_resize2.h801#else
LOWstb_image_resize2.h821#endif
LOWstb_image_resize2.h841#endif
LOWstb_image_resize2.h881 STBIRI_AR_PM = 16,
LOWstb_image_resize2.h1161 return (unsigned char) ((bias + scale*t) >> 16);
LOWstb_image_resize2.h1181
LOWstb_image_resize2.h1201 #define STBIR_AVX2
LOWstb_image_resize2.h1221#endif
LOWstb_image_resize2.h1241 #else
LOWstb_image_resize2.h1261#else
LOWstb_image_resize2.h1281#endif
LOWstb_image_resize2.h1301#endif
LOWstb_image_resize2.h1321 #define stbir__simdf_load2( out, ptr ) (out) = _mm_castsi128_ps( _mm_loadl_epi64( (__m128i*)(ptr)) ) // top values can
LOWstb_image_resize2.h1361 out1 = _mm_unpackhi_epi16( ireg, zero ); \
LOWstb_image_resize2.h1381 #define stbir__simdf_madd1( out, add, mul1, mul2 ) (out) = _mm_fmadd_ss( mul1, mul2, add )
LOWstb_image_resize2.h1401
LOWstb_image_resize2.h1461 #if defined(_MSC_VER) && !defined(__clang__)
LOWstb_image_resize2.h1501 #include <immintrin.h>
LOWstb_image_resize2.h1641
LOWstb_image_resize2.h1661
LOWstb_image_resize2.h1721 #define stbir__simdf_load1( out, ptr ) (out) = vld1q_dup_f32( (float const*)(ptr) ) // top values can be random (not d
LOWstb_image_resize2.h1761 { \
LOWstb_image_resize2.h1781 #define stbir__simdf_madd( out, add, mul1, mul2 ) (out) = vfmaq_f32( add, mul1, mul2 )
LOWstb_image_resize2.h1921
LOWstb_image_resize2.h1981 #define stbir_simdi_castf( reg ) (reg)
LOWstb_image_resize2.h2021 v128_t tmp = wasm_u16x8_extend_low_u8x16(ireg); \
LOWstb_image_resize2.h2041 #define stbir__simdf_add_mem( out, reg, ptr ) (out) = wasm_f32x4_add( reg, wasm_v128_load( (void const*)(ptr) )
LOWstb_image_resize2.h2121 #define STBIR__SIMDF_CONST(var, x) stbir__simdf var = (v128_t)(stbir__f32x4){ x, x, x, x }
LOWstb_image_resize2.h2141 return wasm_f32x4_extract_lane( wasm_f32x4_ceil( wasm_f32x4_splat(x) ), 0);
LOWstb_image_resize2.h2161 #define stbir__simdfX_madd stbir__simdf8_madd
LOWstb_image_resize2.h2181 static const stbir__simdf8 STBIR_simd_point58 = { 0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5 };
LOWstb_image_resize2.h2201 #define stbir__simdfX_1a1a stbir__simdf_1a1a
LOWstb_image_resize2.h2541#define stbir__simdf_0123to0001( out, reg ) (out) = stbir__simdf_swiz( reg, 0,0,0,1 )
LOWstb_image_resize2.h2781#define STBIR_PROFILE_START_ll( info, wh ) { stbir_uint64 wh##thiszonetime = STBIR_PROFILE_FUNC(); stbir_uint64 * wh##sa
LOWstb_image_resize2.h2801#define STBIR_ONLY_PROFILE_SET_SPLIT_INFO
LOWstb_image_resize2.h2821#define STBIR_CEILF(x) ((float)ceil((float)(x)))
LOWstb_image_resize2.h4081#define stbir__decode_swizzle
LOWstb_image_resize2.h4101#define stbir__encode_order1 0
815 more matches not shown…
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippet
MEDIUMstb_vorbis.c51// 1.10 - 2017-03-03 - more robust seeking; fix negative ilog(); clear error in open_memory
MEDIUMstb_voxel_render.h116// everything else should be seamless. (And I'd like to change the API
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippet
LOWstb_voxel_render.h105// Step 3: define STBVOX_CONFIG_PREFER_TEXBUFFER
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
LOWstb_tilemap_editor.h71// representation to the game representation. (Don't forget to