[dovecot-cvs]
dovecot/src/lib byteorder.c,1.1,1.2 byteorder.h,1.1,1.2
cras at procontrol.fi
cras at procontrol.fi
Thu Aug 7 00:13:59 EEST 2003
- Previous message: [dovecot-cvs]
dovecot/src/lib byteorder.c,NONE,1.1 byteorder.h,NONE,1.1
Makefile.am,1.31,1.32
- Next message: [dovecot-cvs] dovecot/src/lib-storage mail-search.c,1.12,1.13
mail-search.h,1.9,1.10 mail-storage.h,1.54,1.55
proxy-mailbox.c,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv24351/lib
Modified Files:
byteorder.c byteorder.h
Log Message:
added nbo32_bitmasks[]
Index: byteorder.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/byteorder.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- byteorder.c 6 Aug 2003 19:56:20 -0000 1.1
+++ byteorder.c 6 Aug 2003 20:13:57 -0000 1.2
@@ -3,7 +3,19 @@
#include "lib.h"
#include "byteorder.h"
+uint32_t nbo32_bitmasks[32] = {
+ NBO32_BIT0, NBO32_BIT1, NBO32_BIT2, NBO32_BIT3,
+ NBO32_BIT4, NBO32_BIT5, NBO32_BIT6, NBO32_BIT7,
+ NBO32_BIT8, NBO32_BIT9, NBO32_BIT10, NBO32_BIT11,
+ NBO32_BIT12, NBO32_BIT13, NBO32_BIT14, NBO32_BIT15,
+ NBO32_BIT16, NBO32_BIT17, NBO32_BIT18, NBO32_BIT19,
+ NBO32_BIT20, NBO32_BIT21, NBO32_BIT22, NBO32_BIT23,
+ NBO32_BIT24, NBO32_BIT25, NBO32_BIT26, NBO32_BIT27,
+ NBO32_BIT28, NBO32_BIT29, NBO32_BIT30, NBO32_BIT31
+};
+
#ifndef WORDS_BIGENDIAN
+
void nbo_to_host(void *data, size_t size)
{
if (size == sizeof(uint32_t)) {
Index: byteorder.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib/byteorder.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- byteorder.h 6 Aug 2003 19:56:20 -0000 1.1
+++ byteorder.h 6 Aug 2003 20:13:57 -0000 1.2
@@ -88,4 +88,6 @@
# define uint32_to_nbo(num) htonl(num)
#endif
+extern uint32_t nbo32_bitmasks[32];
+
#endif
- Previous message: [dovecot-cvs]
dovecot/src/lib byteorder.c,NONE,1.1 byteorder.h,NONE,1.1
Makefile.am,1.31,1.32
- Next message: [dovecot-cvs] dovecot/src/lib-storage mail-search.c,1.12,1.13
mail-search.h,1.9,1.10 mail-storage.h,1.54,1.55
proxy-mailbox.c,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list