acgcc.h (85756) | acgcc.h (87031) |
---|---|
1/****************************************************************************** 2 * 3 * Name: acgcc.h - GCC specific defines, etc. | 1/****************************************************************************** 2 * 3 * Name: acgcc.h - GCC specific defines, etc. |
4 * $Revision: 14 $ | 4 * $Revision: 15 $ |
5 * 6 *****************************************************************************/ 7 8/****************************************************************************** 9 * 10 * 1. Copyright Notice 11 * 12 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp. --- 217 unchanged lines hidden (view full) --- 230 :"=a"(Acq),"=c"(dummy):"c"(GLptr),"i"(~3L):"dx"); \ 231 } while(0) 232 233 234/* 235 * Math helper asm macros 236 */ 237#define ACPI_DIV_64_BY_32(n_hi, n_lo, d32, q32, r32) \ | 5 * 6 *****************************************************************************/ 7 8/****************************************************************************** 9 * 10 * 1. Copyright Notice 11 * 12 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp. --- 217 unchanged lines hidden (view full) --- 230 :"=a"(Acq),"=c"(dummy):"c"(GLptr),"i"(~3L):"dx"); \ 231 } while(0) 232 233 234/* 235 * Math helper asm macros 236 */ 237#define ACPI_DIV_64_BY_32(n_hi, n_lo, d32, q32, r32) \ |
238 asm("divl %2;" \ 239 :"=a"(q32), "=d"(r32) \ 240 :"r"(d32), \ 241 "0"(n_lo), "1"(n_hi)) | 238 asm("divl %2;" \ 239 :"=a"(q32), "=d"(r32) \ 240 :"r"(d32), \ 241 "0"(n_lo), "1"(n_hi)) |
242 243 244#define ACPI_SHIFT_RIGHT_64(n_hi, n_lo) \ | 242 243 244#define ACPI_SHIFT_RIGHT_64(n_hi, n_lo) \ |
245 asm("shrl $1,%2;" \ 246 "rcrl $1,%3;" \ 247 :"=r"(n_hi), "=r"(n_lo) \ 248 :"0"(n_hi), "1"(n_lo)) | 245 asm("shrl $1,%2;" \ 246 "rcrl $1,%3;" \ 247 :"=r"(n_hi), "=r"(n_lo) \ 248 :"0"(n_hi), "1"(n_lo)) |
249 250/*! [End] no source code translation !*/ 251 252#endif /* IA 32 */ 253 254/* This macro is used to tag functions as "printf-like" because 255 * some compilers (like GCC) can catch printf format string problems. 256 */ 257#define ACPI_PRINTF_LIKE_FUNC __attribute__ ((__format__ (__printf__, 4, 5))) 258 259#endif /* __ACGCC_H__ */ | 249 250/*! [End] no source code translation !*/ 251 252#endif /* IA 32 */ 253 254/* This macro is used to tag functions as "printf-like" because 255 * some compilers (like GCC) can catch printf format string problems. 256 */ 257#define ACPI_PRINTF_LIKE_FUNC __attribute__ ((__format__ (__printf__, 4, 5))) 258 259#endif /* __ACGCC_H__ */ |