~linaro-toolchain-dev/cortex-strings/trunk

« back to all changes in this revision

Viewing changes to reference/newlib-xscale/xscale.h

  • Committer: Michael Hope
  • Date: 2011-08-31 23:54:55 UTC
  • Revision ID: michael.hope@linaro.org-20110831235455-1knk9yxvfcoxlm3a
Added the XScale specific routines from Newlib 1.19.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __XSCALE_MACH_H__
 
2
#define __XSCALE_MACH_H__
 
3
 
 
4
/* These are predefined by new versions of GNU cpp.  */
 
5
 
 
6
#ifndef __USER_LABEL_PREFIX__
 
7
#define __USER_LABEL_PREFIX__ _
 
8
#endif
 
9
 
 
10
#ifndef __REGISTER_PREFIX__
 
11
#define __REGISTER_PREFIX__
 
12
#endif
 
13
 
 
14
/* ANSI concatenation macros.  */
 
15
 
 
16
#define CONCAT1(a, b) CONCAT2(a, b)
 
17
#define CONCAT2(a, b) a##b
 
18
 
 
19
/* Use the right prefix for global labels.  */
 
20
 
 
21
#define SYM(x) CONCAT1(__USER_LABEL_PREFIX__, x)
 
22
 
 
23
#define PRELOAD(X) pld  [X]
 
24
#define PRELOADSTR(X) " pld     [" X "]"
 
25
 
 
26
#endif /* !__XSCALE_MACH_H__ */