|
From: | Simon Goldschmidt |
Subject: | [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t) |
Date: | Sun, 30 Aug 2009 21:11:41 +0000 |
User-agent: | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; de; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 |
URL: <http://savannah.nongnu.org/bugs/?27352> Summary: Change ip_addr from struct to typedef (u32_t) Project: lwIP - A Lightweight TCP/IP stack Submitted by: goldsimon Submitted on: So 30 Aug 2009 21:11:40 GMT Category: None Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: lwIP version: CVS Head _______________________________________________________ Details: This was brought up on lwip-users by Bill Auerbach. It would both speed up and decrease memory footprint by not using a packed struct where we don't need it: typedef u32_t ip_addr; instead of PACK_STRUCT_BEGIN struct ip_addr { PACK_STRUCT_FIELD(u32_t addr); } PACK_STRUCT_STRUCT; PACK_STRUCT_END _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?27352> _______________________________________________ Nachricht geschickt von/durch Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |