From 455a1bc2a169f6caf0e3c5d3bfd5be0b23b99846 Mon Sep 17 00:00:00 2001 From: tecodev Date: Fri, 10 Apr 2009 09:15:47 +0000 Subject: [PATCH] * src/pic/gen.c: fixed warning and style git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5431 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 2 +- src/pic/gen.c | 29 +++++++++++++++-------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1a46e870..4626d029 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,7 +10,7 @@ device/lib/pic16/libsdcc/float/fsdiv.c, device/lib/pic16/libsdcc/float/fsmul.c: fixed pic14 libraries, merge changes from the pic16 port, minor code cleanup - * src/pic/gen.c: implemented genUminusFloat() + * src/pic/gen.c: implemented genUminusFloat(), fixed warning and style 2009-04-09 Philipp Klaus Krause diff --git a/src/pic/gen.c b/src/pic/gen.c index 568bd61f..a2482345 100644 --- a/src/pic/gen.c +++ b/src/pic/gen.c @@ -1617,25 +1617,26 @@ release: /*-----------------------------------------------------------------*/ /* genUminusFloat - unary minus for floating points */ /*-----------------------------------------------------------------*/ -static void genUminusFloat(operand *op,operand *result) +static void +genUminusFloat(operand *op, operand *result) { - int size ,offset =0 ; - char *l; + int size; - FENTRY; + FENTRY; - DEBUGpic14_emitcode ("; ***","%s %d",__FUNCTION__,__LINE__); - /* for this we just need to flip the - first it then copy the rest in place */ - size = AOP_SIZE(op) - 1; + DEBUGpic14_emitcode("; ***", "%s %d", __FUNCTION__, __LINE__); + /* for this we just need to flip the + first it then copy the rest in place */ + size = AOP_SIZE(op) - 1; - mov2w_op(op, size); - emitpcode(POC_XORLW, popGetLit(0x80)); - movwf(AOP(result), size); + mov2w_op(op, size); + emitpcode(POC_XORLW, popGetLit(0x80)); + movwf(AOP(result), size); - while(size--) { - mov2w_op(op, size); - movwf(AOP(result), size); + while (size--) + { + mov2w_op(op, size); + movwf(AOP(result), size); } // while } -- 2.30.2