Skip to content
Myr

quick fixes w/o version updates

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parent bdef693 · Browse files · 2 files+9 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+9 added−2 removed

  • other:+9 added−2 removed

2 files+9 added−2 removed

modified:stb_image.h+3 added-2 removed
6275 unmodified lines
6276 warning-fixes from Nicolas Schulz and Janez Zemva (i.stbi__err. Janez (U+017D)emva)6277 1.21 fix use of 'stbi_uc' in header (reported by jon blow)6278 1.20 added support for Softimage PIC, by Tom Seddon6279 1.19 bug in interlaced PNG corruption check (found by ryg)6280 1.18 2008-08-026280 1.18 (2008-08-02)6281 fix a threading bug (local mutable static)6282 1.17 support interlaced PNG6283 1.16 major bugfix - stbi__convert_format converted one too many pixels6284 1.15 initialize some fields for thread safety
36 unmodified lines
6321 0.53 fix bug in png 3->4; speedup png decoding6322 0.52 png handles req_comp=3,4 directly; minor cleanup; jpeg comments6323 0.51 obey req_comp requests, 1-component jpegs return as 1-component,6324 on 'test' only check type, not whether we support this variant6325 0.50 (2006-11-19)6325 0.50 first released version6326 first released version6327*/
modified:stb.h+6 added
1398 unmodified lines
1399#pragma warning(push)1400#pragma warning(disable: 4035) // disable warning about no return value1401int stb_log2_floor(unsigned int n)1402{1403 #if _MSC_VER > 17001404 DWORD i;1405 _BitScanReverse(&i, n);1406 return i != 0 ? i : -1;1407 #else1408 __asm {1409 bsr eax,n1410 jnz done1411 mov eax,-11412 }1413 done:;1414 #endif1415}1416#pragma warning(pop)1417#else1418int stb_log2_floor(unsigned int n)
12668 unmodified lines