Il giorno ven, 24/02/2012 alle 12.03 -0800, Ronald S. Bultje ha scritto: > > Mans would like you to not duplicate the memory, i.e. don't #define > it, rather make it a static const char *varname; declaration in the > header, and then have a data file where that memory is actually > existing.
For such a small string I'd actually suggest that it's not going to be duplicated at all, it'll be merged in by the compiler if it's doing anything good at all. But I would probably argue that using a `static const uint8_t` rather than a literal would help: in that case it would fit into a 64-bit integer, and memcmp could easily be inlined to a comparison if the compiler is smart (which I don't vouch it is). -- Diego Elio Pettenò <[email protected]> _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
