~ubuntu-branches/ubuntu/wily/luajit/wily

« back to all changes in this revision

Viewing changes to src/lj_arch.h

  • Committer: Package Import Robot
  • Author(s): Enrico Tassi
  • Date: 2015-08-14 16:40:52 UTC
  • mfrom: (1.2.5)
  • Revision ID: package-import@ubuntu.com-20150814164052-prd0p1tz8zdupc28
Tags: 2.0.4+dfsg-1
* New upstream release (Close: #789321)
* Build on Hurd (Close: #712975)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
** Target architecture selection.
3
 
** Copyright (C) 2005-2014 Mike Pall. See Copyright Notice in luajit.h
 
3
** Copyright (C) 2005-2015 Mike Pall. See Copyright Notice in luajit.h
4
4
*/
5
5
 
6
6
#ifndef _LJ_ARCH_H
67
67
#elif defined(__MACH__) && defined(__APPLE__)
68
68
#define LUAJIT_OS       LUAJIT_OS_OSX
69
69
#elif (defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || \
70
 
       defined(__NetBSD__) || defined(__OpenBSD__)) && !defined(__ORBIS__)
 
70
       defined(__NetBSD__) || defined(__OpenBSD__) || \
 
71
       defined(__DragonFly__)) && !defined(__ORBIS__)
71
72
#define LUAJIT_OS       LUAJIT_OS_BSD
72
73
#elif (defined(__sun__) && defined(__svr4__)) || defined(__CYGWIN__)
73
74
#define LUAJIT_OS       LUAJIT_OS_POSIX
 
75
#elif defined(__GNU__)
 
76
#define LUAJIT_OS       LUAJIT_OS_POSIX
74
77
#else
75
78
#define LUAJIT_OS       LUAJIT_OS_OTHER
76
79
#endif
111
114
#define NULL ((void*)0)
112
115
#endif
113
116
 
 
117
#ifdef __psp2__
 
118
#define LJ_TARGET_PSVITA        1
 
119
#define LJ_TARGET_CONSOLE       1
 
120
#endif
 
121
 
114
122
#if _XBOX_VER >= 200
115
123
#define LJ_TARGET_XBOX360       1
116
124
#define LJ_TARGET_CONSOLE       1
175
183
#define LJ_TARGET_UNIFYROT      2       /* Want only IR_BROR. */
176
184
#define LJ_ARCH_NUMMODE         LJ_NUMMODE_DUAL
177
185
 
178
 
#if __ARM_ARCH_7__ || __ARM_ARCH_7A__ || __ARM_ARCH_7R__ || __ARM_ARCH_7S__
 
186
#if __ARM_ARCH____ARM_ARCH_8__ || __ARM_ARCH_8A__
 
187
#define LJ_ARCH_VERSION         80
 
188
#elif __ARM_ARCH_7__ || __ARM_ARCH_7A__ || __ARM_ARCH_7R__ || __ARM_ARCH_7S__ || __ARM_ARCH_7VE__
179
189
#define LJ_ARCH_VERSION         70
180
190
#elif __ARM_ARCH_6T2__
181
191
#define LJ_ARCH_VERSION         61
334
344
#if defined(__mips_soft_float)
335
345
#error "No support for MIPS CPUs without FPU"
336
346
#endif
 
347
#if defined(_LP64)
 
348
#error "No support for MIPS64"
 
349
#endif
337
350
#endif
338
351
#endif
339
352