| 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 28 matching lines...) Expand all Loading... |
| 39 // platform. This design was rejected because it was more complicated and | 39 // platform. This design was rejected because it was more complicated and |
| 40 // slower. It would require factory methods for selecting the right | 40 // slower. It would require factory methods for selecting the right |
| 41 // implementation and the overhead of virtual methods for performance | 41 // implementation and the overhead of virtual methods for performance |
| 42 // sensitive like mutex locking/unlocking. | 42 // sensitive like mutex locking/unlocking. |
| 43 | 43 |
| 44 #ifndef V8_PLATFORM_H_ | 44 #ifndef V8_PLATFORM_H_ |
| 45 #define V8_PLATFORM_H_ | 45 #define V8_PLATFORM_H_ |
| 46 | 46 |
| 47 #ifdef __sun | 47 #ifdef __sun |
| 48 # ifndef signbit | 48 # ifndef signbit |
| 49 namespace std { |
| 49 int signbit(double x); | 50 int signbit(double x); |
| 51 } |
| 50 # endif | 52 # endif |
| 51 #endif | 53 #endif |
| 52 | 54 |
| 53 // GCC specific stuff | 55 // GCC specific stuff |
| 54 #ifdef __GNUC__ | 56 #ifdef __GNUC__ |
| 55 | 57 |
| 56 // Needed for va_list on at least MinGW and Android. | 58 // Needed for va_list on at least MinGW and Android. |
| 57 #include <stdarg.h> | 59 #include <stdarg.h> |
| 58 | 60 |
| 59 #define __GNUC_VERSION__ (__GNUC__ * 10000 + __GNUC_MINOR__ * 100) | 61 #define __GNUC_VERSION__ (__GNUC__ * 10000 + __GNUC_MINOR__ * 100) |
| (...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 727 static uint16_t HToN(uint16_t value); | 729 static uint16_t HToN(uint16_t value); |
| 728 static uint16_t NToH(uint16_t value); | 730 static uint16_t NToH(uint16_t value); |
| 729 static uint32_t HToN(uint32_t value); | 731 static uint32_t HToN(uint32_t value); |
| 730 static uint32_t NToH(uint32_t value); | 732 static uint32_t NToH(uint32_t value); |
| 731 }; | 733 }; |
| 732 | 734 |
| 733 | 735 |
| 734 } } // namespace v8::internal | 736 } } // namespace v8::internal |
| 735 | 737 |
| 736 #endif // V8_PLATFORM_H_ | 738 #endif // V8_PLATFORM_H_ |
| OLD | NEW |