Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Side by Side Diff: Source/wtf/MathExtras.h

Issue 14107015: Rename OS(DARWIN) to OS(MACOSX). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/wtf/FastMalloc.cpp ('k') | Source/wtf/NumberOfCores.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 const double piDouble = M_PI; 43 const double piDouble = M_PI;
44 const float piFloat = static_cast<float>(M_PI); 44 const float piFloat = static_cast<float>(M_PI);
45 45
46 const double piOverTwoDouble = M_PI_2; 46 const double piOverTwoDouble = M_PI_2;
47 const float piOverTwoFloat = static_cast<float>(M_PI_2); 47 const float piOverTwoFloat = static_cast<float>(M_PI_2);
48 48
49 const double piOverFourDouble = M_PI_4; 49 const double piOverFourDouble = M_PI_4;
50 const float piOverFourFloat = static_cast<float>(M_PI_4); 50 const float piOverFourFloat = static_cast<float>(M_PI_4);
51 51
52 #if OS(DARWIN) 52 #if OS(MACOSX)
53 53
54 // Work around a bug in the Mac OS X libc where ceil(-0.1) return +0. 54 // Work around a bug in the Mac OS X libc where ceil(-0.1) return +0.
55 inline double wtf_ceil(double x) { return copysign(ceil(x), x); } 55 inline double wtf_ceil(double x) { return copysign(ceil(x), x); }
56 56
57 #define ceil(x) wtf_ceil(x) 57 #define ceil(x) wtf_ceil(x)
58 58
59 #endif 59 #endif
60 60
61 #if OS(OPENBSD) 61 #if OS(OPENBSD)
62 62
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 if (i >> 2) 301 if (i >> 2)
302 log2 += 2, i >>= 2; 302 log2 += 2, i >>= 2;
303 if (i >> 1) 303 if (i >> 1)
304 log2 += 1; 304 log2 += 1;
305 return log2; 305 return log2;
306 } 306 }
307 307
308 } // namespace WTF 308 } // namespace WTF
309 309
310 #endif // #ifndef WTF_MathExtras_h 310 #endif // #ifndef WTF_MathExtras_h
OLDNEW
« no previous file with comments | « Source/wtf/FastMalloc.cpp ('k') | Source/wtf/NumberOfCores.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698