ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/misc.h
(Generate patch)

Comparing ircd-hybrid/trunk/include/s_misc.h (file contents):
Revision 1592 by michael, Sat Oct 27 21:02:32 2012 UTC vs.
Revision 1846 by michael, Mon Apr 22 18:59:59 2013 UTC

# Line 36 | Line 36 | extern char *ssl_get_cipher(const SSL *)
36   #define IRCD_MAX(a, b)  ((a) > (b) ? (a) : (b))
37   #define IRCD_MIN(a, b)  ((a) < (b) ? (a) : (b))
38  
39 < #define _1MEG     (1024.0)
40 < #define _1GIG     (1024.0*1024.0)
41 < #define _1TER     (1024.0*1024.0*1024.0)
39 > #define _1MEG     (1024.0f)
40 > #define _1GIG     (1024.0f*1024.0f)
41 > #define _1TER     (1024.0f*1024.0f*1024.0f)
42   #define _GMKs(x)  (((x) > _1TER) ? "Terabytes" : (((x) > _1GIG) ? "Gigabytes" :\
43                    (((x) > _1MEG) ? "Megabytes" : "Kilobytes")))
44   #define _GMKv(x)  (((x) > _1TER) ? (float)((x)/_1TER) : (((x) > _1GIG) ? \

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)