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

Side by Side Diff: base/basictypes.h

Issue 218953003: Remove all uses of GG_LONGLONG and GG_ULONGLONG. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win? Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « base/atomicops_unittest.cc ('k') | base/port.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains definitions of our old basic integral types 5 // This file contains definitions of our old basic integral types
6 // ((u)int{8,16,32,64}) and further includes. I recommend that you use the C99 6 // ((u)int{8,16,32,64}) and further includes. I recommend that you use the C99
7 // standard types instead, and include <stdint.h>/<stddef.h>/etc. as needed. 7 // standard types instead, and include <stdint.h>/<stddef.h>/etc. as needed.
8 // Note that the macros and macro-like constructs that were formerly defined in 8 // Note that the macros and macro-like constructs that were formerly defined in
9 // this file are now available separately in base/macros.h. 9 // this file are now available separately in base/macros.h.
10 10
(...skipping 27 matching lines...) Expand all
38 typedef unsigned long uint64; 38 typedef unsigned long uint64;
39 #else 39 #else
40 typedef long long int64; 40 typedef long long int64;
41 typedef unsigned long long uint64; 41 typedef unsigned long long uint64;
42 #endif 42 #endif
43 43
44 // DEPRECATED: Please use std::numeric_limits (from <limits>) instead. 44 // DEPRECATED: Please use std::numeric_limits (from <limits>) instead.
45 const uint8 kuint8max = (( uint8) 0xFF); 45 const uint8 kuint8max = (( uint8) 0xFF);
46 const uint16 kuint16max = ((uint16) 0xFFFF); 46 const uint16 kuint16max = ((uint16) 0xFFFF);
47 const uint32 kuint32max = ((uint32) 0xFFFFFFFF); 47 const uint32 kuint32max = ((uint32) 0xFFFFFFFF);
48 const uint64 kuint64max = ((uint64) GG_LONGLONG(0xFFFFFFFFFFFFFFFF)); 48 const uint64 kuint64max = ((uint64) 0xFFFFFFFFFFFFFFFFULL);
49 const int8 kint8min = (( int8) 0x80); 49 const int8 kint8min = (( int8) 0x80);
50 const int8 kint8max = (( int8) 0x7F); 50 const int8 kint8max = (( int8) 0x7F);
51 const int16 kint16min = (( int16) 0x8000); 51 const int16 kint16min = (( int16) 0x8000);
52 const int16 kint16max = (( int16) 0x7FFF); 52 const int16 kint16max = (( int16) 0x7FFF);
53 const int32 kint32min = (( int32) 0x80000000); 53 const int32 kint32min = (( int32) 0x80000000);
54 const int32 kint32max = (( int32) 0x7FFFFFFF); 54 const int32 kint32max = (( int32) 0x7FFFFFFF);
55 const int64 kint64min = (( int64) GG_LONGLONG(0x8000000000000000)); 55 const int64 kint64min = (( int64) 0x8000000000000000LL);
56 const int64 kint64max = (( int64) GG_LONGLONG(0x7FFFFFFFFFFFFFFF)); 56 const int64 kint64max = (( int64) 0x7FFFFFFFFFFFFFFFLL);
57 57
58 #endif // BASE_BASICTYPES_H_ 58 #endif // BASE_BASICTYPES_H_
OLDNEW
« no previous file with comments | « base/atomicops_unittest.cc ('k') | base/port.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698