mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-17 16:50:18 +08:00
Revise the arm test per https://github.com/Unidata/netcdf-c/issues/1854#issuecomment-711983794
This commit is contained in:
parent
73c195e107
commit
26bf8186f3
@ -201,13 +201,14 @@ extern int nc__dap4(void);
|
|||||||
/* Unclear which macros are defined for which compilers.
|
/* Unclear which macros are defined for which compilers.
|
||||||
see: https://sourceforge.net/p/predef/wiki/Architectures/
|
see: https://sourceforge.net/p/predef/wiki/Architectures/
|
||||||
*/
|
*/
|
||||||
#if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_6__)
|
#if defined(__arm__) && __ARM_ARCH < 8
|
||||||
static d4size_t
|
static d4size_t
|
||||||
GETCOUNTER(void* p)
|
GETCOUNTER(void* p)
|
||||||
{COUNTERTYPE v; memcpy(v,p,sizeof(v)); return (d4size_t)v;}
|
{COUNTERTYPE v; memcpy(v,p,sizeof(v)); return (d4size_t)v;}
|
||||||
#else
|
#else
|
||||||
#define GETCOUNTER(p) ((d4size_t)*((COUNTERTYPE*)(p)))
|
#define GETCOUNTER(p) ((d4size_t)*((COUNTERTYPE*)(p)))
|
||||||
#endif
|
#endif /*defined(__arm__) && __ARM_ARCH < 8*/
|
||||||
|
|
||||||
#define SKIPCOUNTER(p) {p=INCR(p,COUNTERSIZE);}
|
#define SKIPCOUNTER(p) {p=INCR(p,COUNTERSIZE);}
|
||||||
|
|
||||||
#undef PUSH
|
#undef PUSH
|
||||||
|
Loading…
Reference in New Issue
Block a user