equal
deleted
inserted
replaced
333 } |
333 } |
334 /* FIXME: some advanced optimizations are possible, especially for format pairs */ |
334 /* FIXME: some advanced optimizations are possible, especially for format pairs */ |
335 } |
335 } |
336 |
336 |
337 int |
337 int |
338 platformByteOrder() |
338 platformByteOrder(void) |
339 { |
339 { |
340 int test = 1; |
340 int test = 1; |
341 |
341 |
342 *(char *) &test = 0; |
342 *(char *) &test = 0; |
343 return test ? BYTE_ORDER_MSBFIRST : BYTE_ORDER_LSBFIRST; |
343 return test ? BYTE_ORDER_MSBFIRST : BYTE_ORDER_LSBFIRST; |