OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // If the number is halfway between two integers, round to the even one. | 84 // If the number is halfway between two integers, round to the even one. |
85 intgr--; | 85 intgr--; |
86 } | 86 } |
87 #endif | 87 #endif |
88 return intgr; | 88 return intgr; |
89 } | 89 } |
90 | 90 |
91 | 91 |
92 #endif // _MSC_VER | 92 #endif // _MSC_VER |
93 | 93 |
| 94 #ifndef __CYGWIN__ |
94 // Random is missing on both Visual Studio and MinGW. | 95 // Random is missing on both Visual Studio and MinGW. |
95 int random(); | 96 int random(); |
| 97 #endif |
96 | 98 |
97 #endif // WIN32 | 99 #endif // WIN32 |
98 | 100 |
99 #include "atomicops.h" | 101 #include "atomicops.h" |
100 #include "lazy-instance.h" | 102 #include "lazy-instance.h" |
101 #include "platform-tls.h" | 103 #include "platform-tls.h" |
102 #include "sampler.h" | 104 #include "sampler.h" |
103 #include "utils.h" | 105 #include "utils.h" |
104 #include "v8globals.h" | 106 #include "v8globals.h" |
105 | 107 |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 static uint16_t HToN(uint16_t value); | 718 static uint16_t HToN(uint16_t value); |
717 static uint16_t NToH(uint16_t value); | 719 static uint16_t NToH(uint16_t value); |
718 static uint32_t HToN(uint32_t value); | 720 static uint32_t HToN(uint32_t value); |
719 static uint32_t NToH(uint32_t value); | 721 static uint32_t NToH(uint32_t value); |
720 }; | 722 }; |
721 | 723 |
722 | 724 |
723 } } // namespace v8::internal | 725 } } // namespace v8::internal |
724 | 726 |
725 #endif // V8_PLATFORM_H_ | 727 #endif // V8_PLATFORM_H_ |
OLD | NEW |