Changeset ef2eade
- Timestamp:
- Aug 14, 2018, 12:59:16 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 7b3a6e6
- Parents:
- 6bde81d
- Location:
- tests
- Files:
-
- 3 deleted
- 3 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
tests/.expect/math1.txt
r6bde81d ref2eade 9 9 exp2:2 2 2 10 10 expm1:1.71828 1.71828182845905 1.71828182845904524 11 pow:1 1 1 0.273957+0.583701i 0.273957253830121+0.583700758758615i 0.273957253830121071+0.583700758758614628i11 pow:1 1 1 0.273957+0.583701i 0.273957253830121+0.583700758758615i -0.638110484918098871+0.705394566961838155i 12 12 \ 16 256 13 13 \ 912673 256 64 -64 0.015625 -0.015625 18.3791736799526 0.264715-1.1922i -
tests/.expect/time.txt
r6bde81d ref2eade 1 10800 2 3. 0712 1.000012 0 2 3. 071 10800 2 3.375 12 1.00001 2 0 2 3.375 3 3 7 7 7 4 4 14 -
tests/math1.c
r6bde81d ref2eade 41 41 sout | "exp2:" | exp2( 1.0F ) | exp2( 1.0D ) | exp2( 1.0L ) | endl; 42 42 sout | "expm1:" | expm1( 1.0F ) | expm1( 1.0D ) | expm1( 1.0L ) | endl; 43 sout | "pow:" | pow( 1.0F, 1.0F ) | pow( 1.0D, 1.0D ) | pow( 1.0L, 1.0L ) | pow( 1.0F+1.0FI, 1.0F+1.0FI ) | pow( 1.0D+1.0DI, 1.0D+1.0DI ) | pow( 1. 0DL+1.0LI, 1.0DL+1.0LI ) | endl;43 sout | "pow:" | pow( 1.0F, 1.0F ) | pow( 1.0D, 1.0D ) | pow( 1.0L, 1.0L ) | pow( 1.0F+1.0FI, 1.0F+1.0FI ) | pow( 1.0D+1.0DI, 1.0D+1.0DI ) | pow( 1.5DL+1.5LI, 1.5DL+1.5LI ) | endl; 44 44 45 45 int b = 4; -
tests/time.c
r6bde81d ref2eade 18 18 19 19 int main() { 20 Duration d1 = 3`h, d2 = 2`s, d3 = 3. 07`s, d4 = 12`s, d5 = 1`s + 10_000`ns;20 Duration d1 = 3`h, d2 = 2`s, d3 = 3.375`s, d4 = 12`s, d5 = 1`s + 10_000`ns; 21 21 sout | d1 | d2 | d3 | d4 | d5 | endl; 22 22 int i;
Note: See TracChangeset
for help on using the changeset viewer.