Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1103)

Delta Between Two Patch Sets: src/lib9/time.c

Issue 60840049: code review 60840049: lib9: enable on Plan 9 (Closed)
Left Patch Set: diff -r ec5195954667 https://code.google.com/p/go Created 11 years, 1 month ago
Right Patch Set: diff -r dc2e4bffd677 https://code.google.com/p/go Created 11 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/lib9/tempdir_plan9.c ('k') | src/lib9/tokenize.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // +build !plan9
2
1 /* 3 /*
2 Plan 9 from User Space src/lib9/time.c 4 Plan 9 from User Space src/lib9/time.c
3 http://code.swtch.com/plan9port/src/tip/src/lib9/time.c 5 http://code.swtch.com/plan9port/src/tip/src/lib9/time.c
4 6
5 Copyright 2001-2007 Russ Cox. All Rights Reserved. 7 Copyright 2001-2007 Russ Cox. All Rights Reserved.
6 8
7 Permission is hereby granted, free of charge, to any person obtaining a copy 9 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal 10 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights 11 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 { 59 {
58 long t[4]; 60 long t[4];
59 double d; 61 double d;
60 62
61 if(p9times(t) < 0) 63 if(p9times(t) < 0)
62 return -1.0; 64 return -1.0;
63 65
64 d = (double)t[0]+(double)t[1]+(double)t[2]+(double)t[3]; 66 d = (double)t[0]+(double)t[1]+(double)t[2]+(double)t[3];
65 return d/1000.0; 67 return d/1000.0;
66 } 68 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b