Mercurial > hg > dmlib
diff tests/fptest.c @ 2046:186cf6a7d634
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 03 Dec 2018 10:53:32 +0200 |
parents | 61246926756a |
children | 88be5cf55caf |
line wrap: on
line diff
--- a/tests/fptest.c Fri Nov 30 08:01:46 2018 +0200 +++ b/tests/fptest.c Mon Dec 03 10:53:32 2018 +0200 @@ -43,23 +43,23 @@ case SDL_LIL_ENDIAN: s = "little endian"; break; default: s = "unknown?"; break; } - + printf( "SDL byte order = %s (%d)\n\n", s, SDL_BYTEORDER); - + printf( "sizeof(DMFixedPoint) = %" DM_PRId64 " bytes\n" "sizeof(DMFixedPoint.dw) = %" DM_PRId64 " bytes (should be %d)\n" "sizeof(DMFixedPoint.w[0]) = %" DM_PRId64 " bytes (should be %d)\n", sizeof(a), sizeof(a.dw), FP_DW_SIZE, sizeof(a.w[0]), FP_W0_SIZE); - + if (sizeof(a.dw) != FP_DW_SIZE || sizeof(a.w[0]) != FP_W0_SIZE) { printf("ERROR! Some type sizes DO NOT MATCH!\n"); return -1; } - + //----------------------------------------------- header("set initial values"); FP_SETHL(a, 55, 0);