From 31442b4615e43ebda829622b4da4961c32e01f26 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Fri, 2 May 2014 21:29:44 +0200 Subject: [PATCH] [DEV] remove deprecated register intruction --- agg/agg_basics.h | 2 +- agg/agg_trans_affine.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/agg/agg_basics.h b/agg/agg_basics.h index cb95838..7ed2a20 100644 --- a/agg/agg_basics.h +++ b/agg/agg_basics.h @@ -203,7 +203,7 @@ namespace agg { AGG_INLINE static unsigned mul(unsigned a, unsigned b) { - register unsigned q = a * b + (1 << (Shift-1)); + unsigned q = a * b + (1 << (Shift-1)); return (q + (q >> Shift)) >> Shift; } }; diff --git a/agg/agg_trans_affine.h b/agg/agg_trans_affine.h index cbed7c8..1dda79b 100644 --- a/agg/agg_trans_affine.h +++ b/agg/agg_trans_affine.h @@ -292,7 +292,7 @@ namespace agg //------------------------------------------------------------------------ inline void trans_affine::transform(double* x, double* y) const { - register double tmp = *x; + double tmp = *x; *x = tmp * sx + *y * shx + tx; *y = tmp * shy + *y * sy + ty; } @@ -300,7 +300,7 @@ namespace agg //------------------------------------------------------------------------ inline void trans_affine::transform_2x2(double* x, double* y) const { - register double tmp = *x; + double tmp = *x; *x = tmp * sx + *y * shx; *y = tmp * shy + *y * sy; } @@ -308,9 +308,9 @@ namespace agg //------------------------------------------------------------------------ inline void trans_affine::inverse_transform(double* x, double* y) const { - register double d = determinant_reciprocal(); - register double a = (*x - tx) * d; - register double b = (*y - ty) * d; + double d = determinant_reciprocal(); + double a = (*x - tx) * d; + double b = (*y - ty) * d; *x = a * sy - b * shx; *y = b * sx - a * shy; }