| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 #include "v8globals.h" | 51 #include "v8globals.h" |
| 52 | 52 |
| 53 #ifdef __sun | 53 #ifdef __sun |
| 54 # ifndef signbit | 54 # ifndef signbit |
| 55 namespace std { | 55 namespace std { |
| 56 int signbit(double x); | 56 int signbit(double x); |
| 57 } | 57 } |
| 58 # endif | 58 # endif |
| 59 #endif | 59 #endif |
| 60 | 60 |
| 61 // GCC specific stuff | |
| 62 #ifdef __GNUC__ | |
| 63 | |
| 64 #define __GNUC_VERSION__ (__GNUC__ * 10000 + __GNUC_MINOR__ * 100) | |
| 65 | |
| 66 #endif // __GNUC__ | |
| 67 | |
| 68 // Microsoft Visual C++ specific stuff. | 61 // Microsoft Visual C++ specific stuff. |
| 69 #if V8_CC_MSVC | 62 #if V8_CC_MSVC |
| 70 | 63 |
| 71 #include "win32-headers.h" | 64 #include "win32-headers.h" |
| 72 #include "win32-math.h" | 65 #include "win32-math.h" |
| 73 | 66 |
| 74 int strncasecmp(const char* s1, const char* s2, int n); | 67 int strncasecmp(const char* s1, const char* s2, int n); |
| 75 | 68 |
| 76 inline int lrint(double flt) { | 69 inline int lrint(double flt) { |
| 77 int intgr; | 70 int intgr; |
| (...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 static uint16_t HToN(uint16_t value); | 791 static uint16_t HToN(uint16_t value); |
| 799 static uint16_t NToH(uint16_t value); | 792 static uint16_t NToH(uint16_t value); |
| 800 static uint32_t HToN(uint32_t value); | 793 static uint32_t HToN(uint32_t value); |
| 801 static uint32_t NToH(uint32_t value); | 794 static uint32_t NToH(uint32_t value); |
| 802 }; | 795 }; |
| 803 | 796 |
| 804 | 797 |
| 805 } } // namespace v8::internal | 798 } } // namespace v8::internal |
| 806 | 799 |
| 807 #endif // V8_PLATFORM_H_ | 800 #endif // V8_PLATFORM_H_ |
| OLD | NEW |