X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Fuatomic%2Fppc.h;h=0e672f57260529679b7c15d31304f57767328bb9;hp=ee3c516645cbe3899fab919bbcf208c5229ffa0b;hb=67ecffc0f530a7b5c4dd5111ea7dd3213da8eb91;hpb=e56d99bf2046a163875df80bab5195f38606dfde diff --git a/urcu/uatomic/ppc.h b/urcu/uatomic/ppc.h index ee3c516..0e672f5 100644 --- a/urcu/uatomic/ppc.h +++ b/urcu/uatomic/ppc.h @@ -1,7 +1,7 @@ #ifndef _URCU_ARCH_UATOMIC_PPC_H #define _URCU_ARCH_UATOMIC_PPC_H -/* +/* * Copyright (c) 1991-1994 by Xerox Corporation. All rights reserved. * Copyright (c) 1996-1999 by Silicon Graphics. All rights reserved. * Copyright (c) 1999-2004 Hewlett-Packard Development Company, L.P. @@ -25,7 +25,7 @@ #ifdef __cplusplus extern "C" { -#endif +#endif #define ILLEGAL_INSTR ".long 0xd00d00" @@ -93,8 +93,10 @@ unsigned long _uatomic_exchange(void *addr, unsigned long val, int len) } #endif } - /* generate an illegal instruction. Cannot catch this with linker tricks - * when optimizations are disabled. */ + /* + * generate an illegal instruction. Cannot catch this with + * linker tricks when optimizations are disabled. + */ __asm__ __volatile__(ILLEGAL_INSTR); return 0; } @@ -153,8 +155,10 @@ unsigned long _uatomic_cmpxchg(void *addr, unsigned long old, } #endif } - /* generate an illegal instruction. Cannot catch this with linker tricks - * when optimizations are disabled. */ + /* + * generate an illegal instruction. Cannot catch this with + * linker tricks when optimizations are disabled. + */ __asm__ __volatile__(ILLEGAL_INSTR); return 0; } @@ -210,8 +214,10 @@ unsigned long _uatomic_add_return(void *addr, unsigned long val, } #endif } - /* generate an illegal instruction. Cannot catch this with linker tricks - * when optimizations are disabled. */ + /* + * generate an illegal instruction. Cannot catch this with + * linker tricks when optimizations are disabled. + */ __asm__ __volatile__(ILLEGAL_INSTR); return 0; } @@ -222,7 +228,7 @@ unsigned long _uatomic_add_return(void *addr, unsigned long val, caa_cast_long_keep_sign(v), \ sizeof(*(addr)))) -#ifdef __cplusplus +#ifdef __cplusplus } #endif