commit
8d4a3d58b7
@ -574,7 +574,7 @@ fn padding(size: u64) -> ValueRef {
|
||||
}
|
||||
|
||||
// XXX this utility routine should be somewhere more general
|
||||
#[always_inline]
|
||||
#[inline(always)]
|
||||
fn roundup(x: u64, a: u64) -> u64 { ((x + (a - 1)) / a) * a }
|
||||
|
||||
/// Get the discriminant of a constant value. (Not currently used.)
|
||||
|
@ -20,7 +20,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#define ALWAYS_INLINE __attribute((always_inline)) INLINE
|
||||
#define ALWAYS_INLINE __attribute__((always_inline)) INLINE
|
||||
#elif defined(_MSC_VER)
|
||||
#define ALWAYS_INLINE __forceinline
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user