Changeset 8c19cf28 in mainline
- Timestamp:
- 2006-11-30T15:38:06Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7c34822e
- Parents:
- c55dd58
- Location:
- kernel/generic/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/atomic.h
rc55dd58 r8c19cf28 44 44 static inline void atomic_set(atomic_t *val, long i) 45 45 { 46 46 val->count = i; 47 47 } 48 48 49 49 static inline long atomic_get(atomic_t *val) 50 50 { 51 51 return val->count; 52 52 } 53 53 -
kernel/generic/include/bitops.h
rc55dd58 r8c19cf28 47 47 int n = 0; 48 48 49 if (arg >> 16) { arg >>= 16;n += 16;} 50 if (arg >> 8) { arg >>= 8; n += 8;} 51 if (arg >> 4) { arg >>= 4; n += 4;} 52 if (arg >> 2) { arg >>= 2; n+=2;} 53 if (arg >> 1) { arg >>= 1; n+=1;} 49 if (arg >> 16) { 50 arg >>= 16; 51 n += 16; 52 } 53 54 if (arg >> 8) { 55 arg >>= 8; 56 n += 8; 57 } 58 59 if (arg >> 4) { 60 arg >>= 4; 61 n += 4; 62 } 63 64 if (arg >> 2) { 65 arg >>= 2; 66 n += 2; 67 } 68 69 if (arg >> 1) { 70 arg >>= 1; 71 n += 1; 72 } 73 54 74 return n; 55 75 } … … 59 79 int n = 0; 60 80 61 if (arg >> 32) { arg >>= 32;n += 32;} 81 if (arg >> 32) { 82 arg >>= 32; 83 n += 32; 84 } 85 62 86 return n + fnzb32((uint32_t) arg); 63 87 } -
kernel/generic/include/sysinfo/sysinfo.h
rc55dd58 r8c19cf28 76 76 } sysinfo_rettype_t; 77 77 78 void sysinfo_set_item_val(const char *name, sysinfo_item_t **root,unative_t val);79 void sysinfo_dump(sysinfo_item_t **root, int depth);80 void sysinfo_set_item_function(const char *name, sysinfo_item_t **root,sysinfo_val_fn_t fn);81 void sysinfo_set_item_undefined(const char *name, sysinfo_item_t **root);78 void sysinfo_set_item_val(const char *name, sysinfo_item_t **root, unative_t val); 79 void sysinfo_dump(sysinfo_item_t **root, int depth); 80 void sysinfo_set_item_function(const char *name, sysinfo_item_t **root, sysinfo_val_fn_t fn); 81 void sysinfo_set_item_undefined(const char *name, sysinfo_item_t **root); 82 82 83 sysinfo_rettype_t sysinfo_get_val(const char *name, sysinfo_item_t **root);83 sysinfo_rettype_t sysinfo_get_val(const char *name, sysinfo_item_t **root); 84 84 85 unative_t sys_sysinfo_valid(unative_t ptr, unative_t len);86 unative_t sys_sysinfo_value(unative_t ptr, unative_t len);85 unative_t sys_sysinfo_valid(unative_t ptr, unative_t len); 86 unative_t sys_sysinfo_value(unative_t ptr, unative_t len); 87 87 88 88 #endif
Note:
See TracChangeset
for help on using the changeset viewer.