forked from len0rd/rockbox
Add new asmdefs mechanism for exporting information only available to the C compiler for use in asm files, and use it in arm jpeg idct. See apps/apps.make, apps/core_asmdefs.c, and apps/recorder/jpeg_idct_arm.S for details.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21831 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
36eeecbe9a
commit
668a769ca4
6 changed files with 87 additions and 152 deletions
17
apps/core_asmdefs.c
Normal file
17
apps/core_asmdefs.c
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include <config.h>
|
||||
#include <bmp.h>
|
||||
|
||||
/* To export a value for use in assembly files, define an int or unsigned here
|
||||
* named AD_<name> and include apps/core_asmdefs.h in the assembly file.
|
||||
* Identifiers without the AD_ prefix will be ignored, and can be used to
|
||||
* create instances of structs for finding offsets to individual members.
|
||||
*/
|
||||
|
||||
|
||||
/* Size of a pixel with 8-bit components. */
|
||||
const int AD_pix8_size =
|
||||
#ifdef HAVE_LCD_COLOR
|
||||
sizeof(struct uint8_rgb);
|
||||
#else
|
||||
1;
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue