nds_nflib/source
Antonio Niño Díaz e1506cc74f library: Cleanup of types
Types like u8 and u16 aren't always a good idea. For example:

    void function(u8 x, u8 y)
    {
        u32 value = (x << 16) | y;
    }

The left shift of x will overflow because x is 8 bits wide. It is better
to make both arguments 32 bit wide.

It may also cause the compiler to introduce bit masking operations at
the caller side because the caller doesn't know how the function
behaves internally.

In order to prevent this kind of issues, it's better to use 32 bit
variables unless there is a very good reason to use smaller types (like
in structs, to save RAM).
2023-05-24 02:53:36 +01:00
..
nf_2d.c library: Cleanup of types 2023-05-24 02:53:36 +01:00
nf_3d.c library: Cleanup of types 2023-05-24 02:53:36 +01:00
nf_affinebg.c library: Make some functions static inline 2023-05-15 02:15:02 +01:00
nf_basic.c library: Cleanup of types 2023-05-24 02:53:36 +01:00
nf_bitmapbg.c library: Translate and cleanup more source files 2023-05-22 01:02:17 +01:00
nf_collision.c library: Remove version number from source files 2023-05-11 23:49:33 +01:00
nf_media.c library: Cleanup of types 2023-05-24 02:53:36 +01:00
nf_mixedbg.c library: Cleanup of types 2023-05-24 02:53:36 +01:00
nf_sound.c library: Cleanup of types 2023-05-24 02:53:36 +01:00
nf_sprite3d.c library: Make some functions static inline 2023-05-15 02:15:02 +01:00
nf_sprite256.c library: Remove version number from source files 2023-05-11 23:49:33 +01:00
nf_text16.c library: Remove version number from source files 2023-05-11 23:49:33 +01:00
nf_text.c library: Cleanup of types 2023-05-24 02:53:36 +01:00
nf_tiledbg.c library: Remove version number from source files 2023-05-11 23:49:33 +01:00
nf_wifi.c library: Remove version number from source files 2023-05-11 23:49:33 +01:00