File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -149,16 +149,16 @@ static inline void busy_wait(void)
149149static __always_inline
150150void __read_once_size (const volatile void * p , void * res , int size )
151151{
152- switch (size ) { \
153- case 1 : * (unsigned char * )res = * (volatile unsigned char * )p ; break ; \
154- case 2 : * (unsigned short * )res = * (volatile unsigned short * )p ; break ; \
155- case 4 : * (unsigned int * )res = * (volatile unsigned int * )p ; break ; \
156- case 8 : * (unsigned long long * )res = * (volatile unsigned long long * )p ; break ; \
157- default : \
158- barrier (); \
159- __builtin_memcpy ((void * )res , (const void * )p , size ); \
160- barrier (); \
161- } \
152+ switch (size ) {
153+ case 1 : * (unsigned char * )res = * (volatile unsigned char * )p ; break ;
154+ case 2 : * (unsigned short * )res = * (volatile unsigned short * )p ; break ;
155+ case 4 : * (unsigned int * )res = * (volatile unsigned int * )p ; break ;
156+ case 8 : * (unsigned long long * )res = * (volatile unsigned long long * )p ; break ;
157+ default :
158+ barrier ();
159+ __builtin_memcpy ((void * )res , (const void * )p , size );
160+ barrier ();
161+ }
162162}
163163
164164static __always_inline void __write_once_size (volatile void * p , void * res , int size )
You can’t perform that action at this time.
0 commit comments