* @author Jose Fonseca <jfonseca@vmware.com>
*/
-
+#include <inttypes.h> /* for PRIx64 macro */
#include "util/u_debug.h"
#include "lp_bld_type.h"
* same shift as possible
*/
for (shift = -3; shift <= 3; ++shift) {
- unsigned long long mask = 0;
+ uint64_t mask = 0;
assert(type4.width <= sizeof(mask)*8);
if (mask) {
LLVMValueRef masked;
LLVMValueRef shifted;
-
if (0)
- debug_printf("shift = %i, mask = 0x%08llx\n", shift, mask);
+ debug_printf("shift = %i, mask = %" PRIx64 "\n", shift, mask);
masked = LLVMBuildAnd(builder, a,
lp_build_const_int_vec(bld->gallivm, type4, mask), "");
+#include <inttypes.h> /* for PRIu64 macro */
#include "util/u_math.h"
#include "lp_rast_priv.h"
#include "lp_state_fs.h"
unsigned x, y;
unsigned total = 0;
unsigned possible = 0;
- static unsigned long long _total;
- static unsigned long long _possible;
+ static uint64_t _total = 0;
+ static uint64_t _possible = 0;
for (x = 0; x < scene->tiles_x; x++)
debug_printf("-");
_total += total;
_possible += possible;
- debug_printf("overall total: %llu possible %llu: percentage: %f\n",
+
+ debug_printf("overall total: %" PRIu64
+ " possible %" PRIu64 ": percentage: %f\n",
_total,
_possible,
- _total * 100.0 / (double)_possible);
+ (double) _total * 100.0 / (double)_possible);
}