Mercurial > hg > dmlib
diff tests/fptest.c @ 809:eba3b87f3f84
Add some separate macros for 64/32 precision fixed point types.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 14 May 2014 21:28:14 +0300 |
parents | 469119cab5b2 |
children | b111cccf45fc |
line wrap: on
line diff
--- a/tests/fptest.c Tue May 13 18:18:10 2014 +0300 +++ b/tests/fptest.c Wed May 14 21:28:14 2014 +0300 @@ -8,8 +8,8 @@ { DMFixedPoint *q = (DMFixedPoint *) &dw; - printf("%-15s = ", str); FP_PRINTF(v); printf("\n"); - printf("should be = "); FP_PRINTF((*q)); printf("\n"); + printf("%-15s = ", str); FP_PRINTF64(v); printf("\n"); + printf("should be = "); FP_PRINTF64((*q)); printf("\n"); if (v.dw != dw) { @@ -40,8 +40,8 @@ printf( "sizeof(DMFixedPoint) = %d bytes\n" - "sizeof(DMFixedPoint.dw = %d bytes (should be %d)\n" - "sizeof(DMFixedPoint.w[0] = %d bytes (should be %d)\n", + "sizeof(DMFixedPoint.dw) = %d bytes (should be %d)\n" + "sizeof(DMFixedPoint.w[0]) = %d bytes (should be %d)\n", sizeof(a), sizeof(a.dw), FP_DW_SIZE, sizeof(a.w[0]), FP_W0_SIZE);