Commit 0db3d15
committed
Support access to integers of size not a power of two
Data types such as UNSIGNED48 was not supported, except via the access
function with the previous commit. Add all the non-power-of-two variants
of UNSIGNED and INTEGER to the OD get/set functions.
Note that defining an array of these objects using OD_ARRAY is broken,
because it produces unaligned accesses, that even if they may be
supported by the platform, will not necessarily be atomic.
Signed-off-by: Andreas Fritiofson <[email protected]>
Change-Id: Id7ee68cc50921b9b6705e95a5867b7f99eb319be1 parent 9c73a28 commit 0db3d15
1 file changed
+40
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
179 | 184 | | |
180 | 185 | | |
181 | 186 | | |
182 | 187 | | |
183 | 188 | | |
184 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
185 | 205 | | |
186 | 206 | | |
187 | 207 | | |
| |||
243 | 263 | | |
244 | 264 | | |
245 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
246 | 271 | | |
247 | 272 | | |
248 | 273 | | |
249 | 274 | | |
250 | 275 | | |
251 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
252 | 292 | | |
253 | 293 | | |
254 | 294 | | |
| |||
0 commit comments