1 | /* |
1 | /* |
2 | * libecb |
2 | * libecb |
3 | * |
3 | * |
4 | * Copyright (c) 2011 Marc Alexander Lehmann |
4 | * Copyright (©) 2009-2011 Marc Alexander Lehmann |
5 | * All rights reserved. |
5 | * All rights reserved. |
6 | * |
6 | * |
7 | * Redistribution and use in source and binary forms, with or without modifica- |
7 | * Redistribution and use in source and binary forms, with or without modifica- |
8 | * tion, are permitted provided that the following conditions are met: |
8 | * tion, are permitted provided that the following conditions are met: |
9 | * |
9 | * |
… | |
… | |
41 | # define ecb_is_constant(c) 0 |
41 | # define ecb_is_constant(c) 0 |
42 | # define ecb_expect(expr,value) (expr) |
42 | # define ecb_expect(expr,value) (expr) |
43 | # define ecb_prefetch(addr,rw,locality) |
43 | # define ecb_prefetch(addr,rw,locality) |
44 | #endif |
44 | #endif |
45 | |
45 | |
|
|
46 | /* no emulation for ecb_decltype */ |
46 | #if ECB_GCC_VERSION(4,5) |
47 | #if ECB_GCC_VERSION(4,5) |
47 | # define ecb_decltype(x) __decltype(x) |
48 | # define ecb_decltype(x) __decltype(x) |
48 | #elif ECB_GCC_VERSION(3,0) |
49 | #elif ECB_GCC_VERSION(3,0) |
49 | # define ecb_decltype(x) typeof(x) |
50 | # define ecb_decltype(x) typeof(x) |
50 | #endif |
51 | #endif |