Changeset 2f08a55d in mainline for test/print/print1/test.c
- Timestamp:
- 2005-09-03T14:16:25Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f6297e0
- Parents:
- 544b4bf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/print/print1/test.c
r544b4bf r2f08a55d 32 32 { 33 33 __u64 u64const = 0x0123456789ABCDEFLL; 34 double d; 34 35 printf(" Printf test \n"); 35 36 printf(" Q %Q %q \n",u64const, u64const); … … 48 49 printf(" E %.10E %.8e (123456789.987654321e12 for precision 10 & 8)\n",123456789.987654321e12,123456789.987654321e12); 49 50 printf(" E %.10E %.8e (987654321.123456789e12 for precision 10 & 8)\n",987654321.123456789e12,987654321.123456789e12); 51 u64const =0x7fffffffffffffffLL; 52 d =*((double *)((void *)(&u64const))); 53 printf(" E %.10E (NaN)\n",d); 54 u64const =(0xfff0000000000000LL); 55 d =*(double *)(void *)(&u64const); 56 printf(" E %.10E (-Inf)\n",d); 50 57 return; 51 58 }
Note:
See TracChangeset
for help on using the changeset viewer.